JAL-2805 Archaeopteryx main returns its created MainFrame instance
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Mon, 13 Nov 2017 14:43:59 +0000 (14:43 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Mon, 13 Nov 2017 14:49:30 +0000 (14:49 +0000)
forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java

index 8cbf8ca..b43b9f1 100644 (file)
@@ -60,7 +60,7 @@ public final class Archaeopteryx {
         return MainFrameApplication.createInstance( phylogenies, config_file_name, title );
     }
 
-    public static void main( final String args[] ) {
+    public static MainFrame main( final String args[] ) {
         Phylogeny[] phylogenies = null;
         String config_filename = null;
         Configuration conf = null;
@@ -126,7 +126,7 @@ public final class Archaeopteryx {
             current_dir = new File( "." );
         }
         try {
-            MainFrameApplication.createInstance( phylogenies, conf, title, current_dir );
+           return MainFrameApplication.createInstance( phylogenies, conf, title, current_dir );
         }
         catch ( final OutOfMemoryError e ) {
             AptxUtil.outOfMemoryError( e );
@@ -137,5 +137,5 @@ public final class Archaeopteryx {
         catch ( final Error e ) {
             AptxUtil.unexpectedError( e );
         }
-    }
+    return null;}
 }
\ No newline at end of file