X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FChimeraViewFrame.java;h=236d094537f6ffc0aaad8d6bfe40adb83c0f28f4;hb=aec85d6dfc1dd5970a50a53dc9d161635d1e9960;hp=815957fb4d972368db4eed61c6a84af64c4d0070;hpb=e68765941b3645a8d0f12aba81408dfe3f58d74f;p=jalview.git diff --git a/src/jalview/gui/ChimeraViewFrame.java b/src/jalview/gui/ChimeraViewFrame.java index 815957f..236d094 100644 --- a/src/jalview/gui/ChimeraViewFrame.java +++ b/src/jalview/gui/ChimeraViewFrame.java @@ -154,7 +154,7 @@ public class ChimeraViewFrame extends GStructureViewer implements Runnable, _alignwith = new Vector(); } - seqColourBy = new ViewSelectionMenu("Colour by ..", this, _colourwith, + seqColourBy = new ViewSelectionMenu(MessageManager.getString("label.colour_by"), this, _colourwith, new ItemListener() { @@ -174,7 +174,7 @@ public class ChimeraViewFrame extends GStructureViewer implements Runnable, }); viewMenu.add(seqColourBy); final ItemListener handler; - JMenu alpanels = new ViewSelectionMenu("Superpose with ..", this, + JMenu alpanels = new ViewSelectionMenu(MessageManager.getString("label.superpose_with"), this, _alignwith, handler = new ItemListener() { @@ -586,7 +586,7 @@ public class ChimeraViewFrame extends GStructureViewer implements Runnable, { command = ""; } - jmb.evalStateCommand(command); + jmb.evalStateCommand(command, false); jmb.setFinishedInit(true); } @@ -698,7 +698,7 @@ public class ChimeraViewFrame extends GStructureViewer implements Runnable, long hdl = pdbid.hashCode() - System.currentTimeMillis(); if (progressBar != null) { - progressBar.setProgressBar("Fetching PDB " + pdbid, hdl); + progressBar.setProgressBar(MessageManager.formatMessage("status.fetching_pdb", new String[]{pdbid}), hdl); } try { @@ -714,7 +714,7 @@ public class ChimeraViewFrame extends GStructureViewer implements Runnable, } if (progressBar != null) { - progressBar.setProgressBar("Finished.", hdl); + progressBar.setProgressBar(MessageManager.getString("label.state_completed"), hdl); } if (pdbseq != null) { @@ -845,13 +845,13 @@ public class ChimeraViewFrame extends GStructureViewer implements Runnable, // do superposition if asked to if (alignAddedStructures) { - javax.swing.SwingUtilities.invokeLater(new Runnable() + new Thread(new Runnable() { public void run() { alignStructs_withAllAlignPanels(); } - }); + }).start(); alignAddedStructures = false; } addingStructures = false; @@ -866,7 +866,7 @@ public class ChimeraViewFrame extends GStructureViewer implements Runnable, jalview.bin.Cache.getProperty("LAST_DIRECTORY")); chooser.setFileView(new JalviewFileView()); - chooser.setDialogTitle("Save PDB File"); + chooser.setDialogTitle(MessageManager.getString("label.save_pdb_file")); chooser.setToolTipText(MessageManager.getString("action.save")); int value = chooser.showSaveDialog(this); @@ -928,7 +928,7 @@ public class ChimeraViewFrame extends GStructureViewer implements Runnable, */ public void eps_actionPerformed(ActionEvent e) { - throw new Error("EPS Generation not yet implemented."); + throw new Error(MessageManager.getString("error.eps_generation_not_implemented")); } /** @@ -939,7 +939,7 @@ public class ChimeraViewFrame extends GStructureViewer implements Runnable, */ public void png_actionPerformed(ActionEvent e) { - throw new Error("PNG Generation not yet implemented."); + throw new Error(MessageManager.getString("error.png_generation_not_implemented")); } public void jmolColour_actionPerformed(ActionEvent actionEvent) @@ -1044,7 +1044,7 @@ public class ChimeraViewFrame extends GStructureViewer implements Runnable, public void backGround_actionPerformed(ActionEvent actionEvent) { java.awt.Color col = JColorChooser.showDialog(this, - "Select Background Colour", null); + MessageManager.getString("label.select_backgroud_colour"), null); if (col != null) { jmb.setBackgroundColour(col);