X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Farchaeopteryx%2FArchaeopteryx.java;h=8cbf8cad3c36cf27d5e932b81665a5cbec312bd0;hb=60ff1de7026c288116202162d99b77ad7a6ba4ba;hp=648fd6537f678a6d01b60cd15694fbfbf3b6a82b;hpb=5a434bf2956612cd1c3fcc9a01fcf77fc9e8f731;p=jalview.git diff --git a/forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java b/forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java index 648fd65..8cbf8ca 100644 --- a/forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java +++ b/forester/java/src/org/forester/archaeopteryx/Archaeopteryx.java @@ -44,6 +44,12 @@ public final class Archaeopteryx { return createApplication( phylogenies, "", "" ); } + public static MainFrame createApplication( final Phylogeny phylogeny, final Configuration config, final String title ) { + final Phylogeny[] phylogenies = new Phylogeny[ 1 ]; + phylogenies[ 0 ] = phylogeny; + return MainFrameApplication.createInstance( phylogenies, config, title ); + } + public static MainFrame createApplication( final Phylogeny[] phylogenies ) { return createApplication( phylogenies, "", "" ); } @@ -54,12 +60,6 @@ public final class Archaeopteryx { return MainFrameApplication.createInstance( phylogenies, config_file_name, title ); } - public static MainFrame createApplication( final Phylogeny phylogeny, final Configuration config, final String title ) { - final Phylogeny[] phylogenies = new Phylogeny[ 1 ]; - phylogenies[ 0 ] = phylogeny; - return MainFrameApplication.createInstance( phylogenies, config, title ); - } - public static void main( final String args[] ) { Phylogeny[] phylogenies = null; String config_filename = null; @@ -84,11 +84,11 @@ public final class Archaeopteryx { f = new File( args[ filename_index ] ); final String err = ForesterUtil.isReadableFile( f ); if ( !ForesterUtil.isEmpty( err ) ) { - ForesterUtil.fatalError( Constants.PRG_NAME, err ); + ForesterUtil.fatalError( AptxConstants.PRG_NAME, err ); } boolean nhx_or_nexus = false; final PhylogenyParser p = ParserUtils.createParserDependingOnFileType( f, conf - .isValidatePhyloXmlAgainstSchema() ); + .isValidatePhyloXmlAgainstSchema() ); if ( p instanceof NHXParser ) { nhx_or_nexus = true; final NHXParser nhx = ( NHXParser ) p; @@ -115,7 +115,7 @@ public final class Archaeopteryx { } } catch ( final Exception e ) { - ForesterUtil.fatalError( Constants.PRG_NAME, "failed to start: " + e.getLocalizedMessage() ); + ForesterUtil.fatalError( AptxConstants.PRG_NAME, "failed to start: " + e.getLocalizedMessage() ); } String title = ""; if ( f != null ) {