set current tree once the tree is prepared
authoramwaterhouse <Andrew Waterhouse>
Tue, 4 Apr 2006 09:38:11 +0000 (09:38 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 4 Apr 2006 09:38:11 +0000 (09:38 +0000)
src/jalview/appletgui/TreePanel.java

index 61b0546..6d17918 100755 (executable)
@@ -37,6 +37,7 @@ public class TreePanel extends Frame implements ActionListener, ItemListener
   int end;\r
   TreeCanvas treeCanvas;\r
   NJTree tree;\r
+  AlignViewport av;\r
 \r
   public NJTree getTree()\r
   {\r
@@ -99,6 +100,7 @@ public class TreePanel extends Frame implements ActionListener, ItemListener
                      String pwtype, int s, int e, NewickFile newTree)\r
   {\r
 \r
+    this.av = av;\r
     this.type = type;\r
     this.pwtype = pwtype;\r
 \r
@@ -149,6 +151,8 @@ public class TreePanel extends Frame implements ActionListener, ItemListener
 \r
       treeCanvas.repaint();\r
 \r
+      av.setCurrentTree(tree);\r
+\r
     }\r
   }\r
 \r