Set current tree when ready
authoramwaterhouse <Andrew Waterhouse>
Tue, 4 Apr 2006 09:31:17 +0000 (09:31 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 4 Apr 2006 09:31:17 +0000 (09:31 +0000)
src/jalview/gui/TreePanel.java

index 9c1e42e..1b01606 100755 (executable)
@@ -56,6 +56,7 @@ public class TreePanel extends GTreePanel
     int end;\r
     TreeCanvas treeCanvas;\r
     NJTree tree;\r
+    AlignViewport av;\r
 \r
     /**\r
      * Creates a new TreePanel object.\r
@@ -134,6 +135,8 @@ public class TreePanel extends GTreePanel
         }\r
       });\r
 \r
+      this.av = av;\r
+\r
 \r
       TreeLoader tl = new TreeLoader(newTree);\r
       tl.start();\r
@@ -169,6 +172,8 @@ public class TreePanel extends GTreePanel
 \r
         treeCanvas.repaint();\r
 \r
+        av.setCurrentTree(tree);\r
+\r
       }\r
     }\r
 \r