X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2FMCview%2FAppletPDBViewer.java;h=2e7c77df0e7ef84731489ccaee1ef4e89d485e65;hb=a8f483d04205bb8273ee311c12968b7e86d205fa;hp=ae255e11e29f06a5926994999595d16cfbd37e02;hpb=a45774ee31d9f35d4eff46d54d7deab719afb092;p=jalview.git diff --git a/src/MCview/AppletPDBViewer.java b/src/MCview/AppletPDBViewer.java old mode 100755 new mode 100644 index ae255e1..2e7c77d --- a/src/MCview/AppletPDBViewer.java +++ b/src/MCview/AppletPDBViewer.java @@ -1,19 +1,20 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7) - * Copyright (C) 2011 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2) + * Copyright (C) 2014 The Jalview Authors * * This file is part of Jalview. * * Jalview is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - * + * * Jalview is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. */ package MCview; @@ -23,6 +24,7 @@ import java.awt.event.*; import jalview.appletgui.*; import jalview.datamodel.*; import jalview.schemes.*; +import jalview.util.MessageManager; public class AppletPDBViewer extends EmbmenuFrame implements ActionListener, ItemListener @@ -60,7 +62,7 @@ public class AppletPDBViewer extends EmbmenuFrame implements false, null); Frame frame = new Frame(); frame.add(cap); - jalview.bin.JalviewLite.addFrame(frame, "PDB - Sequence Mapping", + jalview.bin.JalviewLite.addFrame(frame, MessageManager.getString("label.pdb_sequence_mapping"), 500, 600); cap.setText(pdbcanvas.mappingDetails.toString()); @@ -146,42 +148,42 @@ public class AppletPDBViewer extends EmbmenuFrame implements private void jbInit() throws Exception { setMenuBar(jMenuBar1); - fileMenu.setLabel("File"); - coloursMenu.setLabel("Colours"); - mapping.setLabel("View Mapping"); + fileMenu.setLabel(MessageManager.getString("action.file")); + coloursMenu.setLabel(MessageManager.getString("label.colours")); + mapping.setLabel(MessageManager.getString("label.view_mapping")); mapping.addActionListener(this); - wire.setLabel("Wireframe"); + wire.setLabel(MessageManager.getString("label.wireframe")); wire.addItemListener(this); depth.setState(true); - depth.setLabel("Depthcue"); + depth.setLabel(MessageManager.getString("label.depthcue")); depth.addItemListener(this); zbuffer.setState(true); - zbuffer.setLabel("Z Buffering"); + zbuffer.setLabel(MessageManager.getString("label.z_buffering")); zbuffer.addItemListener(this); - charge.setLabel("Charge & Cysteine"); + charge.setLabel(MessageManager.getString("label.charge_cysteine")); charge.addActionListener(this); - hydro.setLabel("Hydrophobicity"); + hydro.setLabel(MessageManager.getString("label.hydrophobicity")); hydro.addActionListener(this); - chain.setLabel("By Chain"); + chain.setLabel(MessageManager.getString("action.by_chain")); chain.addActionListener(this); - seqButton.setLabel("By Sequence"); + seqButton.setLabel(MessageManager.getString("action.by_sequence")); seqButton.addActionListener(this); - allchains.setLabel("All Chains Visible"); + allchains.setLabel(MessageManager.getString("label.all_chains_visible")); allchains.addItemListener(this); - viewMenu.setLabel("View"); - zappo.setLabel("Zappo"); + viewMenu.setLabel(MessageManager.getString("action.view")); + zappo.setLabel(MessageManager.getString("label.zappo")); zappo.addActionListener(this); - taylor.setLabel("Taylor"); + taylor.setLabel(MessageManager.getString("label.taylor")); taylor.addActionListener(this); - helix.setLabel("Helix Propensity"); + helix.setLabel(MessageManager.getString("label.helix_propensity")); helix.addActionListener(this); - strand.setLabel("Strand Propensity"); + strand.setLabel(MessageManager.getString("label.strand_propensity")); strand.addActionListener(this); - turn.setLabel("Turn Propensity"); + turn.setLabel(MessageManager.getString("label.turn_propensity")); turn.addActionListener(this); - buried.setLabel("Buried Index"); + buried.setLabel(MessageManager.getString("label.buried_index")); buried.addActionListener(this); - user.setLabel("User Defined..."); + user.setLabel(MessageManager.getString("action.user_defined")); user.addActionListener(this); jMenuBar1.add(fileMenu); jMenuBar1.add(coloursMenu);