From f612abfb17ff1bfaf0df44f846ed0b1147490135 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Wed, 17 Jan 2018 16:47:54 +0000 Subject: [PATCH] JAL-2798 now added to active views when associated with Jalview as well --- src/jalview/ext/treeviewer/TreeViewerUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jalview/ext/treeviewer/TreeViewerUtils.java b/src/jalview/ext/treeviewer/TreeViewerUtils.java index 9ed940a..a34d9fa 100644 --- a/src/jalview/ext/treeviewer/TreeViewerUtils.java +++ b/src/jalview/ext/treeviewer/TreeViewerUtils.java @@ -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, -- 1.7.10.2