From: kjvdheide Date: Tue, 16 Jan 2018 18:02:02 +0000 (+0000) Subject: JAL-2798 tree frame is now added to active views when added to Jalview X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0f9fe686dcc62217eaf28ae63bbf36de2ae463ab;p=jalview.git JAL-2798 tree frame is now added to active views when added to Jalview --- 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;