From a58c1f3005f962f3d48043e38fd5e621081eb9b0 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 27 Mar 2017 09:11:47 +0100 Subject: [PATCH] JAL-2428 pass AlignmentView to TreeModel so Show Input Data works --- src/jalview/analysis/TreeBuilder.java | 9 ++++++++- src/jalview/analysis/TreeModel.java | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/jalview/analysis/TreeBuilder.java b/src/jalview/analysis/TreeBuilder.java index 6d5b0fe..5347ba2 100644 --- a/src/jalview/analysis/TreeBuilder.java +++ b/src/jalview/analysis/TreeBuilder.java @@ -55,6 +55,8 @@ public abstract class TreeBuilder Vector node; + private AlignmentView seqStrings; + /** * Constructor * @@ -68,7 +70,7 @@ public abstract class TreeBuilder int start, end; boolean selview = av.getSelectionGroup() != null && av.getSelectionGroup().getSize() > 1; - AlignmentView seqStrings = av.getAlignmentView(selview); + seqStrings = av.getAlignmentView(selview); if (!selview) { start = 0; @@ -459,4 +461,9 @@ public abstract class TreeBuilder } } + public AlignmentView getOriginalData() + { + return seqStrings; + } + } diff --git a/src/jalview/analysis/TreeModel.java b/src/jalview/analysis/TreeModel.java index 62b0594..61c194d 100644 --- a/src/jalview/analysis/TreeModel.java +++ b/src/jalview/analysis/TreeModel.java @@ -95,6 +95,7 @@ public class TreeModel { this(tree.getSequences(), tree.getTopNode(), tree.hasDistances(), tree .hasBootstrap(), tree.hasRootDistance()); + seqData = tree.getOriginalData(); } /** -- 1.7.10.2