From: kjvdheide Date: Mon, 13 Nov 2017 19:46:17 +0000 (+0000) Subject: JAL-2805 TreeParser now interface based X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=d2af831d9311964a94afa3e8723f37e8b601d839;p=jalview.git JAL-2805 TreeParser now interface based --- diff --git a/src/jalview/ext/forester/io/TreeParser.java b/src/jalview/ext/forester/io/TreeParser.java index 48561dc..85f57b6 100644 --- a/src/jalview/ext/forester/io/TreeParser.java +++ b/src/jalview/ext/forester/io/TreeParser.java @@ -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 { 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 index 0000000..034cdca --- /dev/null +++ b/src/jalview/ext/forester/io/TreeParserI.java @@ -0,0 +1,8 @@ +package jalview.ext.forester.io; + +import javax.swing.JInternalFrame; + +public interface TreeParserI +{ + public F loadTree(); +}