From 1a9d0fa9298b774141532a75214a42a7676de28f Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Thu, 11 Jan 2018 12:28:06 +0000 Subject: [PATCH] JAL-2798 alignmentviewport's current external tree is now set when a viewer instance gets associated --- src/jalview/ext/treeviewer/TreeViewerUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 1.7.10.2