From: cmzmasek@gmail.com Date: Fri, 1 Jul 2011 23:06:56 +0000 (+0000) Subject: Added method getCurrentPhylogeny( final String format ) written by Hervé Ménager X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b606686e01ec42a13f9a91103c7e338925497101;p=jalview.git Added method getCurrentPhylogeny( final String format ) written by Hervé Ménager This is used for interaction with JavaScript --- diff --git a/forester/java/src/org/forester/application/pfam_go.java b/forester/java/src/org/forester/application/pfam_go.java index 07e22bb..75f0381 100644 --- a/forester/java/src/org/forester/application/pfam_go.java +++ b/forester/java/src/org/forester/application/pfam_go.java @@ -49,8 +49,9 @@ public class pfam_go { final static private String E_MAIL = "czmasek@burnham.org"; final static private String WWW = "www.phylosoft.org"; - private static void process( final File pfams_file, final List mappings, boolean allow_duplicates ) - throws IOException { + private static void process( final File pfams_file, + final List mappings, + final boolean allow_duplicates ) throws IOException { final BufferedReader reader = ForesterUtil.obtainReader( pfams_file ); String line = ""; int found_count = 0; @@ -113,7 +114,7 @@ public class pfam_go { } final List allowed_options = new ArrayList(); allowed_options.add( ALLOW_DUPLICATES_OPTION ); - if ( cla.getNumberOfNames() != 2 && cla.getNumberOfNames() != 3 ) { + if ( ( cla.getNumberOfNames() != 2 ) && ( cla.getNumberOfNames() != 3 ) ) { printHelp(); System.exit( -1 ); } diff --git a/forester/java/src/org/forester/application/simple_node_processor.java b/forester/java/src/org/forester/application/simple_node_processor.java index ac60660..033bd9f 100644 --- a/forester/java/src/org/forester/application/simple_node_processor.java +++ b/forester/java/src/org/forester/application/simple_node_processor.java @@ -83,8 +83,8 @@ public class simple_node_processor { // } private static void processNode( final PhylogenyNode node, final int i ) { if ( node.isExternal() ) { - String c = "" + node.getNodeData().getBinaryCharacters().getPresentCount(); - String s = node.getNodeData().getTaxonomy().getScientificName(); + final String c = "" + node.getNodeData().getBinaryCharacters().getPresentCount(); + final String s = node.getNodeData().getTaxonomy().getScientificName(); System.out.println( s + "\t" + c ); } } diff --git a/forester/java/src/org/forester/archaeopteryx/ArchaeopteryxE.java b/forester/java/src/org/forester/archaeopteryx/ArchaeopteryxE.java index de79c15..51f09b0 100644 --- a/forester/java/src/org/forester/archaeopteryx/ArchaeopteryxE.java +++ b/forester/java/src/org/forester/archaeopteryx/ArchaeopteryxE.java @@ -30,9 +30,8 @@ import org.forester.archaeopteryx.Options.NODE_LABEL_DIRECTION; import org.forester.archaeopteryx.Options.PHYLOGENY_GRAPHICS_TYPE; import org.forester.phylogeny.Phylogeny; import org.forester.phylogeny.data.SequenceRelation; -import org.forester.util.ForesterUtil; import org.forester.util.ForesterConstants; - +import org.forester.util.ForesterUtil; // Use like this: //