From: kjvdheide Date: Thu, 11 Jan 2018 12:28:06 +0000 (+0000) Subject: JAL-2798 alignmentviewport's current external tree is now set when a X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1a9d0fa9298b774141532a75214a42a7676de28f;p=jalview.git JAL-2798 alignmentviewport's current external tree is now set when a viewer instance gets associated --- diff --git a/src/jalview/ext/treeviewer/TreeViewerUtils.java b/src/jalview/ext/treeviewer/TreeViewerUtils.java index aa07040..23118cf 100644 --- a/src/jalview/ext/treeviewer/TreeViewerUtils.java +++ b/src/jalview/ext/treeviewer/TreeViewerUtils.java @@ -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 activeViews = new HashMap<>(); @@ -24,6 +24,7 @@ public class TreeViewerUtils jalviewAlignViewport, alignMappedToNodes, nodesMappedToAlign); activeViews.put(treeFrame, treeBinding); + jalviewAlignViewport.setCurrentExtTree(treeFrame.getTree()); return treeBinding; }