JAL-2428 pass AlignmentView to TreeModel so Show Input Data works
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 27 Mar 2017 08:11:47 +0000 (09:11 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 27 Mar 2017 08:11:47 +0000 (09:11 +0100)
src/jalview/analysis/TreeBuilder.java
src/jalview/analysis/TreeModel.java

index 6d5b0fe..5347ba2 100644 (file)
@@ -55,6 +55,8 @@ public abstract class TreeBuilder
 
   Vector<SequenceNode> 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;
+  }
+
 }
index 62b0594..61c194d 100644 (file)
@@ -95,6 +95,7 @@ public class TreeModel
   {
     this(tree.getSequences(), tree.getTopNode(), tree.hasDistances(), tree
             .hasBootstrap(), tree.hasRootDistance());
+    seqData = tree.getOriginalData();
   }
 
   /**