X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Farchaeopteryx%2FConfiguration.java;h=8cb5414d08f032ab5869214b8d940639552605ad;hb=733f051a048f64b6850314a08880f1f77a633db8;hp=c578e05d66214e3a99da0ac7f905a2a574dc4980;hpb=64dc04c28918adc0b9b3752cdccd3df1c8c4cb92;p=jalview.git diff --git a/forester/java/src/org/forester/archaeopteryx/Configuration.java b/forester/java/src/org/forester/archaeopteryx/Configuration.java index c578e05..8cb5414 100644 --- a/forester/java/src/org/forester/archaeopteryx/Configuration.java +++ b/forester/java/src/org/forester/archaeopteryx/Configuration.java @@ -217,6 +217,7 @@ public final class Configuration { private EXT_NODE_DATA_RETURN_ON _ext_node_data_return_on = EXT_NODE_DATA_RETURN_ON.WINODW; private int _frame_x_size; private int _frame_y_size; + private boolean _midpoint_root = false; private static String DEFAULT_FONT_FAMILY = ""; static { for( final String font_name : Constants.DEFAULT_FONT_CHOICES ) { @@ -869,10 +870,6 @@ public final class Configuration { else if ( name.equals( "color_subtree" ) ) { index = Configuration.color_subtree; } - else if ( name.equals( "go_to_swiss_prot" ) ) { - ForesterUtil.printWarningMessage( Constants.PRG_NAME, "configuration key [go_to_swiss_prot] is deprecated" ); - return DEPRECATED; - } return index; } @@ -1409,6 +1406,9 @@ public final class Configuration { else if ( key.equals( "taxonomy_colorize_node_shapes" ) ) { setTaxonomyColorizeNodeShapes( parseBoolean( ( String ) st.nextElement() ) ); } + else if ( key.equals( "midpoint_reroot" ) ) { + setMidpointReroot( parseBoolean( ( String ) st.nextElement() ) ); + } else if ( key.equals( "ext_descendents_data_to_return" ) ) { final String s = ( ( String ) st.nextElement() ).trim(); if ( s.equalsIgnoreCase( "node_name" ) ) { @@ -1706,4 +1706,12 @@ public final class Configuration { static enum TRIPLET { TRUE, FALSE, UNKNOWN } + + public boolean isMidpointReroot() { + return _midpoint_root; + } + + public void setMidpointReroot( final boolean midpoint_root ) { + _midpoint_root = midpoint_root; + } }