JAL-2798 alignmentviewport's current external tree is now set when a
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Thu, 11 Jan 2018 12:28:06 +0000 (12:28 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Thu, 11 Jan 2018 12:28:06 +0000 (12:28 +0000)
viewer instance gets associated

src/jalview/ext/treeviewer/TreeViewerUtils.java

index aa07040..23118cf 100644 (file)
@@ -10,7 +10,7 @@ import java.io.File;
 import java.util.HashMap;
 import java.util.Map;
 
-public class TreeViewerUtils
+public final class TreeViewerUtils
 {
   private static Map<TreeFrameI, TreeViewerBindingI> activeViews = new HashMap<>();
 
@@ -24,6 +24,7 @@ public class TreeViewerUtils
             jalviewAlignViewport,
             alignMappedToNodes, nodesMappedToAlign);
     activeViews.put(treeFrame, treeBinding);
+    jalviewAlignViewport.setCurrentExtTree(treeFrame.getTree());
     return treeBinding;
   }