private final File file;
- public TreeParser(String treeFilePath)
+ public TreeParser(final String treeFilePath)
{
final String possibleError = ForesterUtil.isReadableFile(treeFilePath);
if (possibleError != null)
}
- public TreeParser(File treeFile) throws IOException
+ public TreeParser(final File treeFile) throws IOException
{
final String possibleError = ForesterUtil.isReadableFile(treeFile);
if (possibleError != null)
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;
}