JAL-2798 now added to active views when associated with Jalview as well
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 17 Jan 2018 16:47:54 +0000 (16:47 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 17 Jan 2018 16:47:54 +0000 (16:47 +0000)
src/jalview/ext/treeviewer/TreeViewerUtils.java

index 9ed940a..a34d9fa 100644 (file)
@@ -24,6 +24,7 @@ public final class TreeViewerUtils
             jalviewAlignViewport,
             alignMappedToNodes, nodesMappedToAlign);
     jalviewAlignViewport.setCurrentExtTree(treeFrame.getTree());
+    activeViews.put(treeFrame, treeFrame.getViewBinding());
 
     return treeBinding;
   }
@@ -44,6 +45,8 @@ public final class TreeViewerUtils
               new String[]
               { treeFile.getAbsolutePath() });
     }
+    // Usually redundant as this is done when associating nodes as well but that
+    // step could be bypassed
     activeViews.put(treeFrame, treeFrame.getViewBinding());
 
     treeFrame.addFrameToJalview(frameTitle, true, width, height, true,