From 0f9fe686dcc62217eaf28ae63bbf36de2ae463ab Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Tue, 16 Jan 2018 18:02:02 +0000 Subject: [PATCH] JAL-2798 tree frame is now added to active views when added to Jalview --- src/jalview/ext/treeviewer/TreeViewerUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jalview/ext/treeviewer/TreeViewerUtils.java b/src/jalview/ext/treeviewer/TreeViewerUtils.java index 23118cf..9ed940a 100644 --- a/src/jalview/ext/treeviewer/TreeViewerUtils.java +++ b/src/jalview/ext/treeviewer/TreeViewerUtils.java @@ -23,8 +23,8 @@ public final class TreeViewerUtils TreeViewerBindingI treeBinding = new JalviewBinding(treeFrame, jalviewAlignViewport, alignMappedToNodes, nodesMappedToAlign); - activeViews.put(treeFrame, treeBinding); jalviewAlignViewport.setCurrentExtTree(treeFrame.getTree()); + return treeBinding; } @@ -44,6 +44,8 @@ public final class TreeViewerUtils new String[] { treeFile.getAbsolutePath() }); } + activeViews.put(treeFrame, treeFrame.getViewBinding()); + treeFrame.addFrameToJalview(frameTitle, true, width, height, true, true); return treeFrame; -- 1.7.10.2