X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2FMCview%2FAppletPDBViewer.java;h=8a1c430d5cdf72bf44a72c39c4f0b7ba158af40a;hb=b2f9a8d7bce642ff4011bc6d49e02bb0569fbb11;hp=8be34b7b52d95802b22e0ddd224fb8e95856941a;hpb=2de8acfae59aced665e4c37ad0f7dcc2ed68818e;p=jalview.git diff --git a/src/MCview/AppletPDBViewer.java b/src/MCview/AppletPDBViewer.java old mode 100755 new mode 100644 index 8be34b7..8a1c430 --- a/src/MCview/AppletPDBViewer.java +++ b/src/MCview/AppletPDBViewer.java @@ -1,20 +1,20 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1) - * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1) + * Copyright (C) 2014 The Jalview Authors * - * 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 . + * The Jalview Authors are detailed in the 'AUTHORS' file. */ package MCview; @@ -24,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 @@ -61,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()); @@ -147,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);