_alignwith = new Vector<AlignmentPanel>();
}
- seqColourBy = new ViewSelectionMenu("Colour by ..", this, _colourwith,
+ seqColourBy = new ViewSelectionMenu(MessageManager.getString("label.colour_by"), this, _colourwith,
new ItemListener()
{
});
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()
{
{
command = "";
}
- jmb.evalStateCommand(command);
+ jmb.evalStateCommand(command, false);
jmb.setFinishedInit(true);
}
jalview.ws.dbsources.Pdb pdbclient = new jalview.ws.dbsources.Pdb();
for (int pi = 0; pi < jmb.pdbentry.length; pi++)
{
- String file = new File(jmb.pdbentry[pi].getFile())
- .getAbsoluteFile().getPath();
- if (file == null)
+ String file = null;
+ if (jmb.pdbentry[pi].getFile()==null)
{
// retrieve the pdb and store it locally
AlignmentI pdbseq = null;
}
else
{
+ file = new File(jmb.pdbentry[pi].getFile())
+ .getAbsoluteFile().getPath();
if (curfiles != null && curfiles.length > 0)
{
addingStructures = true; // already files loaded.
// 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;