JAL-2805 undid accidental double (buggy) binding, more interface support
[jalview.git] / src / jalview / ext / forester / io / TreeParser.java
index b5a29bf..48561dc 100644 (file)
@@ -18,7 +18,7 @@ public class TreeParser
 
   private final File file;
 
-  public TreeParser(String treeFilePath)
+  public TreeParser(final String treeFilePath)
   {
     final String possibleError = ForesterUtil.isReadableFile(treeFilePath);
     if (possibleError != null)
@@ -34,7 +34,7 @@ public class TreeParser
 
   }
 
-  public TreeParser(File treeFile) throws IOException
+  public TreeParser(final File treeFile) throws IOException
   {
     final String possibleError = ForesterUtil.isReadableFile(treeFile);
     if (possibleError != null)
@@ -48,13 +48,13 @@ public class TreeParser
     filePath = file.getCanonicalPath();
   }
 
-
-  public void loadTree()
+  public MainFrame loadTree()
   {
     String[] AptxArgs = new String[] { "-c",
         "_aptx_jalview_configuration_file", filePath };
     MainFrame aptx = Archaeopteryx.main(AptxArgs);
     ArchaeopteryxInit.bindFrameToJalview(aptx);
+    return aptx;
 
 
   }