phylotastic hackathon at NESCENT 120606
[jalview.git] / forester / java / src / org / forester / archaeopteryx / Configuration.java
index 882e1b8..ea48459 100644 (file)
@@ -62,6 +62,9 @@ public final class Configuration {
     private boolean                         _use_tabbed_display                                    = false;
     private boolean                         _hide_controls_and_menus                               = false;
     private CLADOGRAM_TYPE                  _cladogram_type                                        = Constants.CLADOGRAM_TYPE_DEFAULT;
+    private File                            _mafft                                                 = null;
+    private File                            _clustalo                                              = null;
+    private File                            _fastme                                                = null;
     private SortedMap<String, WebLink>      _weblinks                                              = null;
     private SortedMap<String, Color>        _display_colors                                        = null;
     private boolean                         _antialias_screen                                      = true;
@@ -166,9 +169,9 @@ public final class Configuration {
     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", "display" }, { "Open Taxonomy Web", "display" }, { "Blast", "display" }, { "Cut Subtree", "display" },
-            { "Copy Subtree", "display" }, { "Paste Subtree", "display" }, { "Delete Subtree/Node", "display" },
-            { "Add New Node", "display" }, { "Edit Node Data", "display" }, 
+            { "Open Sequence Web", "display" }, { "Open Taxonomy Web", "display" }, { "Blast", "display" },
+            { "Cut Subtree", "display" }, { "Copy Subtree", "display" }, { "Paste Subtree", "display" },
+            { "Delete Subtree/Node", "display" }, { "Add New Node", "display" }, { "Edit Node Data", "display" },
             { "Sort Descendants", "display" }                                                     };
     // This option is selected in the dropdown
     int                                     default_clickto                                        = Configuration.display_node_data;
@@ -927,6 +930,18 @@ public final class Configuration {
                 _ui = UI.UNKNOWN;
             }
         }
+        else if ( key.equals( "path_to_mafft" ) ) {
+            setPathToMafft( new File( ( String ) st.nextElement() ) );
+        }
+        else if ( key.equals( "path_to_clustalo" ) ) {
+            setPathToClustalOmega( new File( ( String ) st.nextElement() ) );
+        }
+        else if ( key.equals( "path_to_fastme" ) ) {
+            setPathToFastME( new File( ( String ) st.nextElement() ) );
+        }
+        else if ( key.equals( "path_to_mafft" ) ) {
+            setPathToMafft( new File( ( String ) st.nextElement() ) );
+        }
         else if ( key.equals( VALIDATE_AGAINST_PHYLOXML_XSD_SCHEMA ) ) {
             setValidatePhyloXmlAgainstSchema( parseBoolean( ( String ) st.nextElement() ) );
         }
@@ -1502,6 +1517,30 @@ public final class Configuration {
         return DEFAULT_FONT_FAMILY;
     }
 
+    public File getPathToMafft() {
+        return _mafft;
+    }
+
+    public File getPathToClustalOmega() {
+        return _clustalo;
+    }
+
+    public File getPathToFastME() {
+        return _fastme;
+    }
+
+    public void setPathToMafft( final File mafft ) {
+        _mafft = mafft;
+    }
+
+    public void setPathToClustalOmega( final File clustalo ) {
+        _clustalo = clustalo;
+    }
+
+    public void setPathToFastME( final File fastme ) {
+        _fastme = fastme;
+    }
+
     static enum TRIPLET {
         TRUE, FALSE, UNKNOWN
     }