}
- public void updateUI()
+ public void refreshGUI()
{
appletJmolBinding.updateTitleAndMenus();
}
ap.alignFrame.showURL(url, target);
}
- public void updateUI()
+ public void refreshGUI()
{
// ignore
}
break;
case JmolConstants.CALLBACK_SYNC:
case JmolConstants.CALLBACK_RESIZE:
- updateUI();
+ refreshGUI();
break;
case JmolConstants.CALLBACK_MEASURE:
if (errorMsg != null)
{
fileLoadingError = errorMsg;
- updateUI();
+ refreshGUI();
return;
}
// the rest of this routine ignores the arguments, and simply interrogates
{
fr.featuresAdded();
}
- updateUI();
+ refreshGUI();
}
}
* state change. this could be because structures were loaded, or because an
* error has occured.
*/
- public abstract void updateUI();
+ public abstract void refreshGUI();
public void allocateViewer(Component renderPanel, String htmlName,
URL documentBase, URL codeBase, String commandOptions)
public void viewMapping_actionPerformed(ActionEvent actionEvent)
{
jalview.gui.CutAndPasteTransfer cap = new jalview.gui.CutAndPasteTransfer();
- jalview.gui.Desktop.addInternalFrame(cap, "PDB - Sequence Mapping",
- 550, 600);
- for (int pdbe = 0; pdbe<jmb.pdbentry.length; pdbe++) {
+ try {for (int pdbe = 0; pdbe<jmb.pdbentry.length; pdbe++) {
cap.appendText(StructureSelectionManager.getStructureSelectionManager()
.printMapping(jmb.pdbentry[pdbe].getFile()));
cap.appendText("\n");
+ }} catch (OutOfMemoryError e)
+ {
+ new OOMWarning("composing sequence-structure alignments for display in text box.", e);
+ cap.dispose();
+ return;
}
+ jalview.gui.Desktop.addInternalFrame(cap, "PDB - Sequence Mapping",
+ 550, 600);
}
/**
}
@Override
- public void updateUI()
+ public void refreshGUI()
{
// appJmolWindow.repaint();
appJmolWindow.updateTitleAndMenus();