Allow to retrieve a snapshot of the edited phylogenetic tree using javascript code...
[jalview.git] / forester / java / src / org / forester / archaeopteryx / Configuration.java
index ffc9104..c516041 100644 (file)
@@ -119,12 +119,12 @@ public final class Configuration {
     final static int                        show_taxonomy_scientific_names                         = 17;
     final static int                        show_taxonomy_common_names                             = 18;
     final static int                        color_according_to_annotation                          = 19;
-    final static int                        show_property                                          = 20;
-    final static int                        show_gene_symbols                                      = 21;
-    final static int                        node_data_popup                                        = 22;
-    final static int                        show_relation_confidence                               = 23;
-    final static int                        show_vector_data                                       = 24;
-    final static int                        show_taxonomy_images                                   = 25;
+    final static int                        show_gene_symbols                                      = 20;
+    final static int                        node_data_popup                                        = 21;
+    final static int                        show_relation_confidence                               = 22;
+    final static int                        show_vector_data                                       = 23;
+    final static int                        show_taxonomy_images                                   = 24;
+    final static int                        show_properties                                        = 25;
     // ------------------
     // Click-to options
     // ------------------
@@ -162,15 +162,15 @@ public final class Configuration {
             { "Prot/Gene Acc", "display", "no" }, { "Show Internal Data", "display", "yes" },
             { "Dyna Hide", "display", "yes" }, { "Taxonomy Scientific", "display", "yes" },
             { "Taxonomy Common", "display", "no" }, { "Annotation Colorize", "nodisplay", "no" },
-            { "Property", "nodisplay", "no" }, { "Prot/Gene Symbol", "display", "yes" },
-            { "Rollover", "display", "yes" }, { "Relation Confidence", "display", "no" },
-            { "Vector Data", "display", "no" }, { "Taxonomy Images", "display", "no" }            };
+            { "Prot/Gene Symbol", "display", "yes" }, { "Rollover", "display", "yes" },
+            { "Relation Confidence", "display", "no" }, { "Vector Data", "display", "no" },
+            { "Taxonomy Images", "display", "no" }, { "Properties", "display", "no" }             };
     final static String                     clickto_options[][]                                    = {
             { "Display Node Data", "display" }, { "Collapse/Uncollapse", "display" }, { "Root/Reroot", "display" },
             { "Sub/Super Tree", "display" }, { "Swap Descendants", "display" }, { "Colorize Subtree", "display" },
-            { "Open Sequence Web", "nodisplay" }, { "Open Taxonomy Web", "nodisplay" }, { "Cut Subtree", "display" },
+            { "Open Sequence Web", "display" }, { "Open Taxonomy Web", "display" }, { "Cut Subtree", "display" },
             { "Copy Subtree", "display" }, { "Paste Subtree", "display" }, { "Delete Subtree/Node", "display" },
-            { "Add New Node", "display" }, { "Edit Node Data", "display" }, { "Blast", "display" } };
+            { "Add New Node", "display" }, { "Edit Node Data", "display" }, { "Blast", "nodisplay" } };
     // This option is selected in the dropdown
     int                                     default_clickto                                        = Configuration.display_node_data;
     // --------------
@@ -218,7 +218,7 @@ public final class Configuration {
         }
     }
 
-    Configuration( final String cf, final boolean is_url, final boolean is_applet ) {
+    public Configuration( final String cf, final boolean is_url, final boolean is_applet ) {
         if ( ForesterUtil.isEmpty( cf ) ) {
             config_filename = default_config_filename;
         }
@@ -1225,12 +1225,12 @@ public final class Configuration {
             else if ( key.equals( "color_according_to_annotation" ) ) {
                 key_index = Configuration.color_according_to_annotation;
             }
-            else if ( key.equals( "show_property" ) ) {
-                key_index = Configuration.show_property;
-            }
             else if ( key.equals( "show_vector_data" ) ) {
                 key_index = Configuration.show_vector_data;
             }
+            else if ( key.equals( "show_properties" ) ) {
+                key_index = Configuration.show_properties;
+            }
             else if ( key.equals( "show_relation_confidence" ) ) {
                 key_index = Configuration.show_relation_confidence;
             }