JAL-2805 TreeParser now interface based
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Mon, 13 Nov 2017 19:46:17 +0000 (19:46 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Mon, 13 Nov 2017 19:46:17 +0000 (19:46 +0000)
src/jalview/ext/forester/io/TreeParser.java
src/jalview/ext/forester/io/TreeParserI.java [new file with mode: 0644]

index 48561dc..85f57b6 100644 (file)
@@ -12,7 +12,7 @@ import org.forester.archaeopteryx.Archaeopteryx;
 import org.forester.archaeopteryx.MainFrame;
 import org.forester.util.ForesterUtil;
 
-public class TreeParser
+public class TreeParser implements TreeParserI<MainFrame>
 {
   private final String filePath;
 
@@ -48,6 +48,7 @@ public class TreeParser
     filePath = file.getCanonicalPath();
   }
 
+  @Override
   public MainFrame loadTree()
   {
     String[] AptxArgs = new String[] { "-c",
@@ -58,6 +59,7 @@ public class TreeParser
 
 
   }
+
 }
 
 /**
diff --git a/src/jalview/ext/forester/io/TreeParserI.java b/src/jalview/ext/forester/io/TreeParserI.java
new file mode 100644 (file)
index 0000000..034cdca
--- /dev/null
@@ -0,0 +1,8 @@
+package jalview.ext.forester.io;
+
+import javax.swing.JInternalFrame;
+
+public interface TreeParserI<F extends JInternalFrame>
+{
+  public F loadTree();
+}