JAL-1953 equals and hashCode now takes node ID in account
[jalview.git] / forester / java / src / org / forester / archaeopteryx / Archaeopteryx.java
index 8cbf8ca..43481f5 100644 (file)
@@ -49,7 +49,10 @@ public final class Archaeopteryx {
         phylogenies[ 0 ] = phylogeny;
         return MainFrameApplication.createInstance( phylogenies, config, title );
     }
-
+    public static MainFrame createApplication( final Phylogeny[] phylogenies, final Configuration config, final String title ) {
+        return MainFrameApplication.createInstance( phylogenies, config, title );
+    }
+    
     public static MainFrame createApplication( final Phylogeny[] phylogenies ) {
         return createApplication( phylogenies, "", "" );
     }
@@ -60,7 +63,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 +129,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 +140,5 @@ public final class Archaeopteryx {
         catch ( final Error e ) {
             AptxUtil.unexpectedError( e );
         }
-    }
+    return null;}
 }
\ No newline at end of file