From d2af831d9311964a94afa3e8723f37e8b601d839 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Mon, 13 Nov 2017 19:46:17 +0000 Subject: [PATCH] JAL-2805 TreeParser now interface based --- src/jalview/ext/forester/io/TreeParser.java | 4 +++- src/jalview/ext/forester/io/TreeParserI.java | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/jalview/ext/forester/io/TreeParserI.java 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(); +} -- 1.7.10.2