// 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
// 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
import org.forester.io.parsers.phyloxml.PhyloXmlParser;
import org.forester.io.parsers.tol.TolParser;
import org.forester.phylogeny.Phylogeny;
+import org.forester.phylogeny.PhylogenyMethods;
import org.forester.phylogeny.data.Identifier;
import org.forester.phylogeny.factories.ParserBasedPhylogenyFactory;
import org.forester.phylogeny.factories.PhylogenyFactory;
break;
case NH:
parser = new NHXParser();
- ( ( NHXParser ) parser ).setTaxonomyExtraction( ForesterUtil.TAXONOMY_EXTRACTION.NO );
+ ( ( NHXParser ) parser ).setTaxonomyExtraction( PhylogenyMethods.TAXONOMY_EXTRACTION.NO );
( ( NHXParser ) parser ).setReplaceUnderscores( true );
( ( NHXParser ) parser ).setGuessRootedness( true );
break;
case NH_EXTRACT_TAXONOMY:
parser = new NHXParser();
( ( NHXParser ) parser )
- .setTaxonomyExtraction( ForesterUtil.TAXONOMY_EXTRACTION.PFAM_STYLE_ONLY );
+ .setTaxonomyExtraction( PhylogenyMethods.TAXONOMY_EXTRACTION.PFAM_STYLE_ONLY );
( ( NHXParser ) parser ).setReplaceUnderscores( false );
( ( NHXParser ) parser ).setGuessRootedness( true );
break;
case PFAM:
parser = new NHXParser();
( ( NHXParser ) parser )
- .setTaxonomyExtraction( ForesterUtil.TAXONOMY_EXTRACTION.PFAM_STYLE_ONLY );
+ .setTaxonomyExtraction( PhylogenyMethods.TAXONOMY_EXTRACTION.PFAM_STYLE_ONLY );
( ( NHXParser ) parser ).setReplaceUnderscores( false );
( ( NHXParser ) parser ).setGuessRootedness( true );
break;
case NHX:
parser = new NHXParser();
- ( ( NHXParser ) parser ).setTaxonomyExtraction( ForesterUtil.TAXONOMY_EXTRACTION.NO );
+ ( ( NHXParser ) parser ).setTaxonomyExtraction( PhylogenyMethods.TAXONOMY_EXTRACTION.NO );
( ( NHXParser ) parser ).setReplaceUnderscores( false );
( ( NHXParser ) parser ).setGuessRootedness( true );
break;
JOptionPane.ERROR_MESSAGE );
}
catch ( final IOException e ) {
- JOptionPane.showMessageDialog( _main_frame, "Could not read from " + url + "\n"
- + e.getLocalizedMessage(), "Failed to read tree from " + client.getName() + " for "
- + identifier, JOptionPane.ERROR_MESSAGE );
+ JOptionPane.showMessageDialog( _main_frame,
+ "Could not read from " + url + "\n" + e.getLocalizedMessage(),
+ "Failed to read tree from " + client.getName() + " for " + identifier,
+ JOptionPane.ERROR_MESSAGE );
}
catch ( final NumberFormatException e ) {
- JOptionPane.showMessageDialog( _main_frame, "Could not read from " + url + "\n"
- + e.getLocalizedMessage(), "Failed to read tree from " + client.getName() + " for "
- + identifier, JOptionPane.ERROR_MESSAGE );
+ JOptionPane.showMessageDialog( _main_frame,
+ "Could not read from " + url + "\n" + e.getLocalizedMessage(),
+ "Failed to read tree from " + client.getName() + " for " + identifier,
+ JOptionPane.ERROR_MESSAGE );
}
catch ( final Exception e ) {
e.printStackTrace();
if ( client.getName().equals( WebserviceUtil.PFAM_NAME ) ) {
phylogeny.setRerootable( false );
phylogeny.setRooted( true );
- ForesterUtil.transferInternalNodeNamesToConfidence( phylogeny );
+ PhylogenyMethods.transferInternalNodeNamesToConfidence( phylogeny );
}
if ( client.getProcessingInstructions() != null ) {
WebserviceUtil.processInstructions( client, phylogeny );
}
if ( client.getNodeField() != null ) {
- ForesterUtil.transferNodeNameToField( phylogeny, client.getNodeField() );
+ PhylogenyMethods.transferNodeNameToField( phylogeny, client.getNodeField() );
}
phylogeny.setIdentifier( new Identifier( identifier, client.getName() ) );
_main_frame.getJMenuBar().remove( _main_frame.getHelpMenu() );