Desktop.instance.stopLoading();
}
+ /*
+ * Regather multiple views (with the same sequence set id) to the frame (if
+ * any) that is flagged as the one to gather to, i.e. convert them to tabbed
+ * views instead of separate frames. Note this doesn't restore a state where
+ * some expanded views in turn have tabbed views - the last "first tab" read
+ * in will play the role of gatherer for all.
+ */
for (AlignFrame fr : gatherToThisFrame.values())
{
Desktop.instance.gatherViews(fr);
protected SplitFrame createSplitFrame(AlignFrame dnaFrame,
AlignFrame proteinFrame)
{
- dnaFrame.setVisible(true);
- proteinFrame.setVisible(true);
- proteinFrame.getViewport().setCodingComplement(dnaFrame.getViewport());
- final StructureSelectionManager ssm = StructureSelectionManager
- .getStructureSelectionManager(Desktop.instance);
- ssm.addCommandListener(proteinFrame.getViewport());
- ssm.addCommandListener(dnaFrame.getViewport());
-
SplitFrame splitFrame = new SplitFrame(dnaFrame, proteinFrame);
String title = MessageManager.getString("label.linked_view_title");
Desktop.addInternalFrame(splitFrame, title, -1, -1);