X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2FMCview%2FAppletPDBViewer.java;h=b2e1187889b5c80b278a4ad149fdd86f322be3f8;hb=21d6c27e237d77ae258755562aa8abdc6b5320b8;hp=8299abc72b89639ad41ae6ed0d18a35a7a12b910;hpb=506d60f0e188723ddc91c26824b41ac7034df3fe;p=jalview.git diff --git a/src/MCview/AppletPDBViewer.java b/src/MCview/AppletPDBViewer.java old mode 100755 new mode 100644 index 8299abc..b2e1187 --- a/src/MCview/AppletPDBViewer.java +++ b/src/MCview/AppletPDBViewer.java @@ -1,20 +1,19 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4) - * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8) + * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle * - * This program 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 2 - * of the License, or (at your option) any later version. + * This file is part of Jalview. * - * This program 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. + * 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 this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + * You should have received a copy of the GNU General Public License along with Jalview. If not, see . */ package MCview; @@ -24,6 +23,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 @@ -61,7 +61,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()); @@ -147,42 +147,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);