JAL-845 SplitFrame for "show product" and after aligning from SplitFrame
[jalview.git] / src / jalview / gui / Jalview2XML.java
index 36b48ab..8342151 100644 (file)
@@ -2155,6 +2155,13 @@ public class Jalview2XML
       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);
@@ -2256,14 +2263,6 @@ public class Jalview2XML
   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);