X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Farchaeopteryx%2FArchaeopteryxA.java;h=dad1425136e53e5d2005e44fb1977e363769ee32;hb=5a4b2fee20522338ade76d942cc997840b1d8246;hp=bea6a7b44efc0e7f8db5cc1a25d2c48dd78dbdc6;hpb=ccf4c584032d16ed0ed8d0678f01305887724f96;p=jalview.git diff --git a/forester/java/src/org/forester/archaeopteryx/ArchaeopteryxA.java b/forester/java/src/org/forester/archaeopteryx/ArchaeopteryxA.java index bea6a7b..dad1425 100644 --- a/forester/java/src/org/forester/archaeopteryx/ArchaeopteryxA.java +++ b/forester/java/src/org/forester/archaeopteryx/ArchaeopteryxA.java @@ -5,7 +5,7 @@ // Copyright (C) 2008-2009 Christian M. Zmasek // Copyright (C) 2008-2009 Burnham Institute for Medical Research // All rights reserved -// +// // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either @@ -15,7 +15,7 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA @@ -54,7 +54,7 @@ public class ArchaeopteryxA extends JApplet { @Override public void destroy() { - Util.printAppletMessage( NAME, "going to be destroyed" ); + AptxUtil.printAppletMessage( NAME, "going to be destroyed" ); if ( getMainFrameApplet() != null ) { getMainFrameApplet().close(); } @@ -81,7 +81,7 @@ public class ArchaeopteryxA extends JApplet { boolean has_exception = false; setName( NAME ); setUrlString( getParameter( Constants.APPLET_PARAM_NAME_FOR_URL_OF_TREE_TO_LOAD ) ); - Util.printAppletMessage( NAME, "URL of phylogenies to load: \"" + getUrlString() + "\"" ); + AptxUtil.printAppletMessage( NAME, "URL of phylogenies to load: \"" + getUrlString() + "\"" ); setBackground( background_color ); setForeground( font_color ); setFont( font ); @@ -98,8 +98,8 @@ public class ArchaeopteryxA extends JApplet { repaint(); } final String config_filename = getParameter( Constants.APPLET_PARAM_NAME_FOR_CONFIG_FILE_URL ); - Util.printAppletMessage( NAME, "URL for configuration file is: " + config_filename ); - final Configuration configuration = new Configuration( config_filename, true, true ); + AptxUtil.printAppletMessage( NAME, "URL for configuration file is: " + config_filename ); + final Configuration configuration = new Configuration( config_filename, true, true, true ); try { if ( configuration.isUseNativeUI() ) { UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() ); @@ -111,9 +111,14 @@ public class ArchaeopteryxA extends JApplet { _mainframe_applet = new MainFrameApplet( this, configuration ); URL url = null; url = new URL( getUrlString() ); - final Phylogeny[] phys = Util.readPhylogeniesFromUrl( url, configuration.isValidatePhyloXmlAgainstSchema() ); - Util.addPhylogeniesToTabs( phys, new File( url.getFile() ).getName(), getUrlString(), getMainFrameApplet() - .getConfiguration(), getMainFrameApplet().getMainPanel() ); + final Phylogeny[] phys = AptxUtil.readPhylogeniesFromUrl( url, configuration + .isValidatePhyloXmlAgainstSchema(), configuration.isReplaceUnderscoresInNhParsing(), configuration + .isInternalNumberAreConfidenceForNhParsing(), configuration.getTaxonomyExtraction() ); + AptxUtil.addPhylogeniesToTabs( phys, + new File( url.getFile() ).getName(), + getUrlString(), + getMainFrameApplet().getConfiguration(), + getMainFrameApplet().getMainPanel() ); getMainFrameApplet().getMainPanel().getControlPanel().showWholeAll(); getMainFrameApplet().getMainPanel().getControlPanel().showWhole(); setVisible( true ); @@ -130,7 +135,7 @@ public class ArchaeopteryxA extends JApplet { if ( !has_exception ) { setMessage1( NAME + " is now ready!" ); repaint(); - Util.printAppletMessage( NAME, "successfully initialized" ); + AptxUtil.printAppletMessage( NAME, "successfully initialized" ); } KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner(); getMainFrameApplet().requestFocus(); @@ -183,6 +188,6 @@ public class ArchaeopteryxA extends JApplet { getMainFrameApplet().requestFocus(); getMainFrameApplet().requestFocusInWindow(); getMainFrameApplet().requestFocus(); - Util.printAppletMessage( NAME, "started" ); + AptxUtil.printAppletMessage( NAME, "started" ); } }