Changeset 8231


Ignore:
Timestamp:
2004-10-07T16:44:32+13:00 (20 years ago)
Author:
mdewsnip
Message:

Replaced all "Gatherer.config" with "Configuration".

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
76 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/Configuration.java

    r8230 r8231  
    11/**
    22 *#########################################################################
    3  *
     3 * Configuration
    44 * A component of the Gatherer application, part of the Greenstone digital
    55 * library suite from the New Zealand Digital Library Project at the
     
    132132    static private String wget_version_str = StaticStrings.NO_WGET_STR;
    133133
    134     public URL exec_address = null;
     134    static public URL exec_address = null;
    135135
    136136    /** Constructor.
  • trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r8196 r8231  
    589589    }
    590590    WarningDialog dialog = new WarningDialog(message_name, "general.exec_address" );
    591     dialog.setValueField(new URLField(Gatherer.config.getColor("coloring.editable_foreground", false), Gatherer.config.getColor("coloring.editable_background", false), Gatherer.config.getColor("coloring.error_foreground", false), Gatherer.config.getColor("coloring.error_background", false)));
     591    dialog.setValueField(new URLField(Configuration.getColor("coloring.editable_foreground", false), Configuration.getColor("coloring.editable_background", false), Configuration.getColor("coloring.error_foreground", false), Configuration.getColor("coloring.error_background", false)));
    592592    dialog.display();
    593593    dialog.dispose();
    594594    dialog = null;
    595595
    596     String library_path_string = Gatherer.config.getString("general.exec_address", true);
     596    String library_path_string = Configuration.getString("general.exec_address", true);
    597597    if (!library_path_string.equals("")) {
    598598        try {
    599         Gatherer.config.exec_address = new URL(library_path_string);
     599        Configuration.exec_address = new URL(library_path_string);
    600600        }
    601601        catch (MalformedURLException error) {
     
    673673    static public void setProxy() {
    674674    try {// Can throw several exceptions
    675         if(Gatherer.config.get("general.use_proxy", true)) {
     675        if(Configuration.get("general.use_proxy", true)) {
    676676        System.setProperty("http.proxyType", "4");
    677         System.setProperty("http.proxyHost", Gatherer.config.getString("general.proxy_host", true));
    678         System.setProperty("http.proxyPort", Gatherer.config.getString("general.proxy_port", true));
     677        System.setProperty("http.proxyHost", Configuration.getString("general.proxy_host", true));
     678        System.setProperty("http.proxyPort", Configuration.getString("general.proxy_port", true));
    679679        System.setProperty("http.proxySet", "true");
    680680        } else {
  • trunk/gli/src/org/greenstone/gatherer/WGet.java

    r7658 r8231  
    261261    Gatherer.println("About to create a new job");
    262262
    263     DownloadJob new_job = new DownloadJob(Gatherer.config.get("mirroring.debug", false), no_parents, other_hosts, page_requisites, Gatherer.config.get("mirroring.quiet", false), url, depth, destination, Gatherer.config.proxy_pass, Gatherer.config.proxy_user, this, simple);
     263    DownloadJob new_job = new DownloadJob(Configuration.get("mirroring.debug", false), no_parents, other_hosts, page_requisites, Configuration.get("mirroring.quiet", false), url, depth, destination, Configuration.proxy_pass, Configuration.proxy_user, this, simple);
    264264
    265265    // Tell it to run as soon as possible
  • trunk/gli/src/org/greenstone/gatherer/cdm/ArgumentConfiguration.java

    r8020 r8231  
    156156
    157157    // Display on screen.
    158     Dimension screen_size = Gatherer.config.screen_size;
     158    Dimension screen_size = Configuration.screen_size;
    159159    setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2);
    160160    screen_size = null;
     
    215215    inner_pane.setBackground(color);
    216216    JLabel header_label = new JLabel("<html><strong>" + name + "</strong></html>");
    217     header_label.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     217    header_label.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    218218    header_label.setHorizontalAlignment(JLabel.CENTER);
    219219    header_label.setOpaque(true);
     
    235235    ArrayList arguments = data.getArguments(true, false);
    236236    int total_height = 250;
    237     int mode = Gatherer.config.getMode();
     237    int mode = Configuration.getMode();
    238238    for(int i = 0; i < arguments.size(); i++) {
    239239        Argument argument = (Argument) arguments.get(i);
     
    246246    // now add in the custom args bit
    247247    coloured = !coloured;
    248     Color color = (coloured ? Gatherer.config.getColor("coloring.collection_heading_background", false) : Gatherer.config.getColor("coloring.collection_tree_background", false));
     248    Color color = (coloured ? Configuration.getColor("coloring.collection_heading_background", false) : Configuration.getColor("coloring.collection_tree_background", false));
    249249    addHeader(Dictionary.get("CDM.ArgumentConfiguration.Custom_Header"), color);
    250250    custom_pane.setBackground(color);
     
    264264    private Argument argument = null;
    265265
    266     private Color colour_one = Gatherer.config.getColor("coloring.collection_heading_background", false);
    267     private Color colour_two = Gatherer.config.getColor("coloring.collection_tree_background", false);
     266    private Color colour_one = Configuration.getColor("coloring.collection_heading_background", false);
     267    private Color colour_two = Configuration.getColor("coloring.collection_tree_background", false);
    268268    /** One of a possible two buttons available for adding to this control. */
    269269    private JButton one = null;
     
    449449
    450450        // Editable for advanced modes (allows things like dc.Title,ex.Title)
    451         if (Gatherer.config.getMode() > Configuration.ASSISTANT_MODE) {
     451        if (Configuration.getMode() > Configuration.ASSISTANT_MODE) {
    452452            ((JComboBox) value).setEditable(true);
    453453        }
  • trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java

    r8015 r8231  
    3636import javax.swing.event.*;
    3737import org.apache.xerces.parsers.*;
     38import org.greenstone.gatherer.Configuration;
    3839import org.greenstone.gatherer.Dictionary;
    3940import org.greenstone.gatherer.Gatherer;
     
    327328        if(Utility.isWindows()) {
    328329            args = new String[6];
    329             if(Gatherer.config.perl_path != null) {
    330             args[0] = Gatherer.config.perl_path;
     330            if(Configuration.perl_path != null) {
     331            args[0] = Configuration.perl_path;
    331332            }
    332333            else {
    333334            args[0] = "Perl.exe";
    334335            }
    335             args[1] = Gatherer.config.gsdl_path + "bin" + File.separator + "script" + File.separator + "classinfo.pl";
     336            args[1] = Configuration.gsdl_path + "bin" + File.separator + "script" + File.separator + "classinfo.pl";
    336337            args[2] = "-xml";
    337338            args[3] = "-language";
     
    386387        if (Gatherer.isGsdlRemote) {
    387388
    388         String lang = Gatherer.config.getLanguage();
     389        String lang = Configuration.getLanguage();
    389390
    390391        String launch  = Gatherer.cgiBase + "launch";
     
    410411
    411412        // Retrieve the gsdl home directory...
    412         String directory = Gatherer.config.gsdl_path;
     413        String directory = Configuration.gsdl_path;
    413414        directory = directory + "perllib" + File.separator + "classify" + File.separator;
    414415
    415         String current_lang = Gatherer.config.getLanguage();
     416        String current_lang = Configuration.getLanguage();
    416417        File files[] = (new File(directory)).listFiles();
    417418        if(files != null) {
     
    465466    }
    466467
    467     String current_lang = Gatherer.config.getLanguage();
     468    String current_lang = Configuration.getLanguage();
    468469    if (num_classifiers>0) {
    469470        // Create a progress indicator.
     
    659660        ClassifierComboboxListener ccl = new ClassifierComboboxListener();
    660661        classifier = new GComboBox(getAvailable());
    661         classifier.setBackgroundNonSelectionColor(Gatherer.config.getColor("coloring.editable_background", false));
    662         classifier.setBackgroundSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
     662        classifier.setBackgroundNonSelectionColor(Configuration.getColor("coloring.editable_background", false));
     663        classifier.setBackgroundSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
    663664        classifier.setEditable(true);
    664         classifier.setTextNonSelectionColor(Gatherer.config.getColor("coloring.workspace_tree_foreground", false));
    665         classifier.setTextSelectionColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     665        classifier.setTextNonSelectionColor(Configuration.getColor("coloring.workspace_tree_foreground", false));
     666        classifier.setTextSelectionColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    666667        if(classifier.getItemCount() > 0) {
    667668        classifier.setSelectedIndex(0);
  • trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java

    r8056 r8231  
    3232import java.util.*;
    3333import javax.swing.*;
     34import org.greenstone.gatherer.Configuration;
    3435import org.greenstone.gatherer.Gatherer;
    3536import org.greenstone.gatherer.cdm.CommandTokenizer;
     
    10911092            String name = (String) acquired_collectionmeta_names.get(y);
    10921093            String value = name.substring(1);
    1093             Gatherer.println("G2.39 CollectMeta missing. Adding: " + name + " [l=" + Gatherer.config.getLanguage() + "] \"" + value + "\"");
     1094            Gatherer.println("G2.39 CollectMeta missing. Adding: " + name + " [l=" + Configuration.getLanguage() + "] \"" + value + "\"");
    10941095            Element element = document.createElement(COLLECTIONMETADATA_ELEMENT);
    10951096            element.setAttribute(NAME_ATTRIBUTE, name);
    1096             element.setAttribute(LANGUAGE_ATTRIBUTE, Gatherer.config.getLanguage());
     1097            element.setAttribute(LANGUAGE_ATTRIBUTE, Configuration.getLanguage());
    10971098            element.setAttribute(ASSIGNED_ATTRIBUTE, TRUE_STR);
    10981099            XMLTools.setValue(element, value);
     
    13671368        String value_str = tokenizer.nextToken();
    13681369        if(name_str != null && value_str != null) {
    1369         String language_str = Gatherer.config.getLanguage();
     1370        String language_str = Configuration.getLanguage();
    13701371        // Check if the value string is actually a language string
    13711372        if(value_str.startsWith(LBRACKET_CHARACTER) && value_str.endsWith(RBRACKET_CHARACTER)) {
  • trunk/gli/src/org/greenstone/gatherer/cdm/CollectionDesignManager.java

    r8055 r8231  
    3232import javax.swing.*;
    3333import javax.swing.event.*;
     34import org.greenstone.gatherer.Configuration;
    3435import org.greenstone.gatherer.Gatherer;
    3536import org.greenstone.gatherer.cdm.ClassifierManager;
     
    215216      boolean formats_changed = format_manager.formatsChanged();
    216217
    217       if(formats_changed && Gatherer.c_man.built() && Gatherer.config.exec_file != null) {
     218      if(formats_changed && Gatherer.c_man.built() && Configuration.exec_file != null) {
    218219      // Release the collection
    219220      Gatherer.self.configServer(GSDLSiteConfig.RELEASE_COMMAND + col_name);
  • trunk/gli/src/org/greenstone/gatherer/cdm/CollectionMeta.java

    r8015 r8231  
    6565    element = CollectionDesignManager.collect_config.document.createElement(StaticStrings.COLLECTIONMETADATA_ELEMENT);
    6666    element.setAttribute(StaticStrings.NAME_ATTRIBUTE, name);
    67     element.setAttribute(StaticStrings.LANGUAGE_ATTRIBUTE, Gatherer.config.getLanguage());
     67    element.setAttribute(StaticStrings.LANGUAGE_ATTRIBUTE, Configuration.getLanguage());
    6868    element.setAttribute(StaticStrings.ASSIGNED_ATTRIBUTE, StaticStrings.FALSE_STR);
    6969    }
  • trunk/gli/src/org/greenstone/gatherer/cdm/CollectionMetaManager.java

    r6539 r8231  
    3232import javax.swing.*;
    3333import javax.swing.event.*;
     34import org.greenstone.gatherer.Configuration;
    3435import org.greenstone.gatherer.Gatherer;
    3536import org.greenstone.gatherer.cdm.CollectionDesignManager;
     
    124125    for(int i = 0; i < size; i++) {
    125126        CollectionMeta metadatum = (CollectionMeta) getElementAt(i);
    126         if(metadatum.getName().equals(name) && metadatum.getLanguage().equals(Gatherer.config.getLanguage())) {
     127        if(metadatum.getName().equals(name) && metadatum.getLanguage().equals(Configuration.getLanguage())) {
    127128        Gatherer.println("Found '" + metadatum + "'");
    128129        return metadatum;
  • trunk/gli/src/org/greenstone/gatherer/cdm/FormatManager.java

    r8002 r8231  
    3737import javax.swing.*;
    3838import javax.swing.event.*;
     39import org.greenstone.gatherer.Configuration;
    3940import org.greenstone.gatherer.Dictionary;
    4041import org.greenstone.gatherer.Gatherer;
     
    274275
    275276        instructions_textarea = new JTextArea();
    276         instructions_textarea.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     277        instructions_textarea.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    277278        instructions_textarea.setEditable(false);
    278279        instructions_textarea.setLineWrap(true);
     
    323324       
    324325        editor_textarea = new JTextArea();
    325         editor_textarea.setBackground(Gatherer.config.getColor("coloring.editable_background", false));
     326        editor_textarea.setBackground(Configuration.getColor("coloring.editable_background", false));
    326327        editor_textarea.setCaretPosition(0);
    327328        editor_textarea.setLineWrap(true);
  • trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r7365 r8231  
    213213        Dictionary.registerText(creator_label, "CDM.General.Email.Creator");
    214214
    215         creator_emailfield = new EmailField(Gatherer.config.getColor("coloring.error_background", false));
     215        creator_emailfield = new EmailField(Configuration.getColor("coloring.error_background", false));
    216216        Dictionary.registerTooltip(creator_emailfield, "CDM.General.Email.Creator_Tooltip");
    217217
     
    219219        Dictionary.registerText(maintainer_label, "CDM.General.Email.Maintainer");
    220220
    221         maintainer_emailfield = new EmailField(Gatherer.config.getColor("coloring.error_background", false));
     221        maintainer_emailfield = new EmailField(Configuration.getColor("coloring.error_background", false));
    222222        Dictionary.registerTooltip(maintainer_emailfield, "CDM.General.Email.Maintainer_Tooltip");
    223223
     
    230230        JTextField short_name_textfield = new JTextField(Gatherer.c_man.getCollection().getName());
    231231        short_name_textfield.setEditable(false);
    232         short_name_textfield.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     232        short_name_textfield.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    233233        JPanel icon_panel = new JPanel();
    234234        icon_label = new JLabel();
     
    259259        Dictionary.registerText(description_label, "CDM.General.Collection_Extra");
    260260        description_textarea = new JTextArea();
    261         description_textarea.setBackground(Gatherer.config.getColor("coloring.editable_background", false));
     261        description_textarea.setBackground(Configuration.getColor("coloring.editable_background", false));
    262262        Dictionary.registerTooltip(description_textarea, "CDM.General.Collection_Extra_Tooltip");
    263263        // Connection
     
    423423        creator_collectionmeta.setValue(creator_email_str);
    424424        // If the email is currently empty, store this email
    425         if(Gatherer.config.getEmail() == null) {
    426             Gatherer.config.setEmail(creator_email_str); // Store the email address in the configuration
     425        if(Configuration.getEmail() == null) {
     426            Configuration.setEmail(creator_email_str); // Store the email address in the configuration
    427427        }
    428428        collection_extra_collectionmeta.setValue(description_textarea.getText());
     
    579579    public DesignTree() {
    580580        super();
    581         resetModel(Gatherer.config.getMode());
     581        resetModel(Configuration.getMode());
    582582        expandRow(0);
    583583        setRootVisible(false);
  • trunk/gli/src/org/greenstone/gatherer/cdm/IndexManager.java

    r8002 r8231  
    3232import javax.swing.*;
    3333import javax.swing.event.*;
     34import org.greenstone.gatherer.Configuration;
    3435import org.greenstone.gatherer.Dictionary;
    3536import org.greenstone.gatherer.Gatherer;
     
    958959        index_combobox = new GComboBox();
    959960        index_combobox.setPreferredSize(FIELD_SIZE);
    960         index_combobox.setBackgroundNonSelectionColor(Gatherer.config.getColor("coloring.editable_background", false));
    961         index_combobox.setBackgroundSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
     961        index_combobox.setBackgroundNonSelectionColor(Configuration.getColor("coloring.editable_background", false));
     962        index_combobox.setBackgroundSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
    962963        index_combobox.setEditable(true);
    963         index_combobox.setTextNonSelectionColor(Gatherer.config.getColor("coloring.workspace_tree_foreground", false));
    964         index_combobox.setTextSelectionColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     964        index_combobox.setTextNonSelectionColor(Configuration.getColor("coloring.workspace_tree_foreground", false));
     965        index_combobox.setTextSelectionColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    965966        Dictionary.registerTooltip(index_combobox, "CDM.IndexManager.MGPP.Index_Tooltip");
    966967
     
    10901091        level_combobox = new GComboBox(Index.LEVEL);
    10911092        level_combobox.setPreferredSize(FIELD_SIZE);
    1092         level_combobox.setBackgroundNonSelectionColor(Gatherer.config.getColor("coloring.editable_background", false));
    1093         level_combobox.setBackgroundSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
     1093        level_combobox.setBackgroundNonSelectionColor(Configuration.getColor("coloring.editable_background", false));
     1094        level_combobox.setBackgroundSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
    10941095        level_combobox.setEditable(true);
    1095         level_combobox.setTextNonSelectionColor(Gatherer.config.getColor("coloring.workspace_tree_foreground", false));
    1096         level_combobox.setTextSelectionColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     1096        level_combobox.setTextNonSelectionColor(Configuration.getColor("coloring.workspace_tree_foreground", false));
     1097        level_combobox.setTextSelectionColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    10971098        Dictionary.registerTooltip(level_combobox, "CDM.IndexManager.Level_Tooltip");
    10981099
  • trunk/gli/src/org/greenstone/gatherer/cdm/LanguageManager.java

    r8002 r8231  
    3838import javax.swing.*;
    3939import javax.swing.event.*;
     40import org.greenstone.gatherer.Configuration;
    4041import org.greenstone.gatherer.Dictionary;
    4142import org.greenstone.gatherer.Gatherer;
     
    293294        }
    294295        default_language_field.setPreferredSize(COMPONENT_SIZE);
    295         default_language_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     296        default_language_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    296297        default_language_field.setEditable(false);
    297298        JPanel control_panel = new JPanel();
     
    302303        selector_combobox = new JComboBox(getLanguageCodes().toArray());
    303304        selector_combobox.setPreferredSize(COMPONENT_SIZE);
    304         selector_combobox.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     305        selector_combobox.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    305306        selector_combobox.setRenderer(new LanguageListCellRenderer());
    306307        Dictionary.registerTooltip(selector_combobox, "CDM.LanguageManager.Selector_Tooltip");
  • trunk/gli/src/org/greenstone/gatherer/cdm/MetadataSetView.java

    r8055 r8231  
    3232import javax.swing.*;
    3333import javax.swing.event.*;
     34import org.greenstone.gatherer.Configuration;
    3435import org.greenstone.gatherer.Dictionary;
    3536import org.greenstone.gatherer.Gatherer;
     
    208209        header_pane = new JPanel();
    209210        instructions = new JTextArea();
    210         instructions.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     211        instructions.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    211212        instructions.setEditable(false);
    212213        instructions.setLineWrap(true);
  • trunk/gli/src/org/greenstone/gatherer/cdm/PlugInManager.java

    r8152 r8231  
    380380        if(Utility.isWindows()) {
    381381            args = new String[6];
    382             if(Gatherer.config.perl_path != null) {
    383             args[0] = Gatherer.config.perl_path;
     382            if(Configuration.perl_path != null) {
     383            args[0] = Configuration.perl_path;
    384384            }
    385385            else {
    386386            args[0] = "Perl.exe";
    387387            }
    388             args[1] = Gatherer.config.gsdl_path + "bin" + File.separator + "script" + File.separator + "pluginfo.pl";
     388            args[1] = Configuration.gsdl_path + "bin" + File.separator + "script" + File.separator + "pluginfo.pl";
    389389            args[2] = "-xml";
    390390            args[3] = "-language";
     
    436436        if (Gatherer.isGsdlRemote) {
    437437
    438         String lang = Gatherer.config.getLanguage();
     438        String lang = Configuration.getLanguage();
    439439
    440440        String launch  = Gatherer.cgiBase + "launch";
     
    459459        else {
    460460        // Retrieve the gsdl home directory...
    461         String directory = Gatherer.config.gsdl_path;
     461        String directory = Configuration.gsdl_path;
    462462        directory = directory + "perllib" + File.separator + "plugins" + File.separator;
    463463        loadPlugIns(new File(directory));
     
    503503    boolean is_mac = Utility.isMac();
    504504
    505     String current_lang = Gatherer.config.getLanguage();
     505    String current_lang = Configuration.getLanguage();
    506506    if (num_plugins>0) {
    507507        // Create a progress indicator.
     
    532532    boolean is_windows = Utility.isWindows();
    533533    boolean is_mac = Utility.isMac();
    534     String current_lang = Gatherer.config.getLanguage();
     534    String current_lang = Configuration.getLanguage();
    535535    if(files != null) {
    536536        // Create a progress indicator.
     
    729729
    730730        instructions = new JTextArea();
    731         instructions.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     731        instructions.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    732732        instructions.setEditable(false);
    733733        instructions.setLineWrap(true);
     
    752752        PlugInComboboxListener picl = new PlugInComboboxListener();
    753753        plugin = new GComboBox(getAvailable());
    754         plugin.setBackgroundNonSelectionColor(Gatherer.config.getColor("coloring.editable_background", false));
    755         plugin.setBackgroundSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
     754        plugin.setBackgroundNonSelectionColor(Configuration.getColor("coloring.editable_background", false));
     755        plugin.setBackgroundSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
    756756        plugin.setEditable(true);
    757         plugin.setTextNonSelectionColor(Gatherer.config.getColor("coloring.workspace_tree_foreground", false));
    758         plugin.setTextSelectionColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     757        plugin.setTextNonSelectionColor(Configuration.getColor("coloring.workspace_tree_foreground", false));
     758        plugin.setTextSelectionColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    759759        picl.itemStateChanged(new ItemEvent(plugin, 0, null, ItemEvent.SELECTED));
    760760
     
    818818        plugin_list_pane.add(plugin_list_label, BorderLayout.NORTH);
    819819        plugin_list_pane.add(new JScrollPane(plugin_list), BorderLayout.CENTER);
    820         modeChanged(Gatherer.config.getMode()); // Whether the movement buttons are visible is mode dependant
     820        modeChanged(Configuration.getMode()); // Whether the movement buttons are visible is mode dependant
    821821
    822822        plugin_label.setBorder(BorderFactory.createEmptyBorder(0,0,5,0));
  • trunk/gli/src/org/greenstone/gatherer/cdm/SearchTypeManager.java

    r8002 r8231  
    3636import javax.swing.*;
    3737import javax.swing.event.*;
     38import org.greenstone.gatherer.Configuration;
    3839import org.greenstone.gatherer.Dictionary;
    3940import org.greenstone.gatherer.Gatherer;
     
    210211        search_type_combobox = new GComboBox(SEARCH_TYPES);
    211212        search_type_combobox.setPreferredSize(Utility.LABEL_SIZE);
    212         search_type_combobox.setBackgroundNonSelectionColor(Gatherer.config.getColor("coloring.editable_background", false));
    213         search_type_combobox.setBackgroundSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
     213        search_type_combobox.setBackgroundNonSelectionColor(Configuration.getColor("coloring.editable_background", false));
     214        search_type_combobox.setBackgroundSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
    214215        search_type_combobox.setEditable(true);
    215216        search_type_combobox.setSelectedIndex(0);
    216         search_type_combobox.setTextNonSelectionColor(Gatherer.config.getColor("coloring.workspace_tree_foreground", false));
    217         search_type_combobox.setTextSelectionColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     217        search_type_combobox.setTextNonSelectionColor(Configuration.getColor("coloring.workspace_tree_foreground", false));
     218        search_type_combobox.setTextSelectionColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    218219        Dictionary.registerTooltip(search_type_combobox, "CDM.SearchTypeManager.SearchType_Selection_Tooltip");
    219220
  • trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionIndexManager.java

    r8002 r8231  
    3232import javax.swing.*;
    3333import javax.swing.event.*;
     34import org.greenstone.gatherer.Configuration;
    3435import org.greenstone.gatherer.Dictionary;
    3536import org.greenstone.gatherer.Gatherer;
     
    246247        }
    247248        default_value_field.setPreferredSize(Utility.LABEL_SIZE);
    248         default_value_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     249        default_value_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    249250        default_value_field.setEditable(false);
    250251
  • trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionManager.java

    r8015 r8231  
    218218        JPanel button_pane_1 = new JPanel();
    219219        include_button = new JRadioButton();
    220         include_button.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     220        include_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    221221        include_button.setMnemonic(KeyEvent.VK_I);
    222222        include_button.setOpaque(false);
    223223        Dictionary.registerText(include_button, "CDM.SubcollectionManager.Include");
    224224        exclude_button = new JRadioButton();
    225         exclude_button.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     225        exclude_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    226226        exclude_button.setMnemonic(KeyEvent.VK_X);
    227227        exclude_button.setOpaque(false);
     
    268268        JPanel message_pane = new JPanel();
    269269        String args[] = new String[3];
    270         args[0] = Gatherer.config.getModeAsString();
     270        args[0] = Configuration.getModeAsString();
    271271        args[1] = Dictionary.get("Preferences.Mode.Systems");
    272272        args[2] = Dictionary.get("Preferences.Mode.Expert");
     
    347347        border_pane.setBorder(BorderFactory.createEmptyBorder(0,5,5,5));
    348348        border_pane.setLayout(card_layout);
    349         if(Gatherer.config.getMode() > Configuration.LIBRARIAN_MODE) {
     349        if(Configuration.getMode() > Configuration.LIBRARIAN_MODE) {
    350350        border_pane.add(tabbed_pane, ENABLED_CONTROLS);
    351351        border_pane.add(message_pane, DISABLED_CONTROLS);
  • trunk/gli/src/org/greenstone/gatherer/cdm/SuperCollectionManager.java

    r8002 r8231  
    3232import javax.swing.*;
    3333import javax.swing.event.*;
     34import org.greenstone.gatherer.Configuration;
    3435import org.greenstone.gatherer.Dictionary;
    3536import org.greenstone.gatherer.Gatherer;
     
    126127
    127128        JTextArea instructions = new JTextArea();
    128         instructions.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     129        instructions.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    129130        instructions.setCaretPosition(0);
    130131        instructions.setEditable(false);
     
    193194        File gsdl_collection_directory;
    194195        if (Gatherer.GS3) {
    195         gsdl_collection_directory = new File(Utility.getCollectDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name));
     196        gsdl_collection_directory = new File(Utility.getCollectDir(Configuration.gsdl3_path, Configuration.site_name));
    196197        } else {
    197         gsdl_collection_directory = new File(Utility.getCollectDir(Gatherer.config.gsdl_path));
     198        gsdl_collection_directory = new File(Utility.getCollectDir(Configuration.gsdl_path));
    198199        }
    199200        current_coll_name = Gatherer.c_man.getCollection().getName();
  • trunk/gli/src/org/greenstone/gatherer/cdm/TranslationView.java

    r7157 r8231  
    3333import javax.swing.event.*;
    3434import javax.swing.table.*;
     35import org.greenstone.gatherer.Configuration;
    3536import org.greenstone.gatherer.Dictionary;
    3637import org.greenstone.gatherer.Gatherer;
     
    220221        fragment_table = new JTable(fragment_table_model);
    221222        fragment_table.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);
    222         fragment_table.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     223        fragment_table.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    223224        fragment_table.setColumnSelectionAllowed(false);
    224225        fragment_table.setDefaultRenderer(Object.class, new FragmentTableRenderer());
     
    226227
    227228        JScrollPane table_scroll = new JScrollPane(fragment_table);
    228         table_scroll.getViewport().setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     229        table_scroll.getViewport().setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    229230        table_scroll.setOpaque(true);
    230231
     
    245246        Dictionary.registerText(default_label, "CDM.TranslationManager.Default_Text");
    246247        default_area = new JTextArea();
    247         default_area.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     248        default_area.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    248249        default_area.setEditable(false);
    249250        default_area.setLineWrap(true);
     
    254255        Dictionary.registerText(translation_label, "CDM.TranslationManager.Translation");
    255256        translation_area = new JTextArea();
    256         translation_area.setBackground(Gatherer.config.getColor("coloring.disabled", false));
     257        translation_area.setBackground(Configuration.getColor("coloring.disabled", false));
    257258        translation_area.setEnabled(false);
    258259        translation_area.setLineWrap(true);
     
    466467            // Update and enable the text area
    467468            translation_area.setEnabled(true);
    468             translation_area.setBackground(Gatherer.config.getColor("coloring.editable_background", false));
     469            translation_area.setBackground(Configuration.getColor("coloring.editable_background", false));
    469470            }
    470471            else {
     
    476477            translation_area.setText("");
    477478            translation_area.setEnabled(false);
    478             translation_area.setBackground(Gatherer.config.getColor("coloring.disabled", false));
     479            translation_area.setBackground(Configuration.getColor("coloring.disabled", false));
    479480            }
    480481        }
     
    654655        JComponent component = (JComponent) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
    655656        if(isSelected) {
    656             component.setBackground(Gatherer.config.getColor("coloring.workspace_heading_background", false));
     657            component.setBackground(Configuration.getColor("coloring.workspace_heading_background", false));
    657658        }
    658659        else {
    659             component.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     660            component.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    660661        }
    661662        return component;
     
    683684            // Ready the text area
    684685            translation_area.setEnabled(true);
    685             translation_area.setBackground(Gatherer.config.getColor("coloring.editable_background", false));
     686            translation_area.setBackground(Configuration.getColor("coloring.editable_background", false));
    686687            ignore_event = false;
    687688        }
  • trunk/gli/src/org/greenstone/gatherer/collection/BuildOptions.java

    r8015 r8231  
    66import java.util.*;
    77import org.apache.xerces.parsers.DOMParser;
     8import org.greenstone.gatherer.Configuration;
    89import org.greenstone.gatherer.Gatherer;
    910import org.greenstone.gatherer.cdm.Argument;
     
    4546    public BuildOptions(Element build_values_element, Element import_values_element) {
    4647    // first check the saved arguments language
    47     String interface_lang = Gatherer.config.getLanguage();
    48     String args_lang = Gatherer.config.getArgumentsLanguage();
     48    String interface_lang = Configuration.getLanguage();
     49    String args_lang = Configuration.getArgumentsLanguage();
    4950    if (interface_lang.equals(args_lang)) {
    5051        // Try to retrieve the arguments for import and build.
    51         build_arguments_element = Gatherer.config.getArguments("buildcol.pl");
    52         import_arguments_element = Gatherer.config.getArguments("import.pl");
     52        build_arguments_element = Configuration.getArguments("buildcol.pl");
     53        import_arguments_element = Configuration.getArguments("import.pl");
    5354    }
    5455    // If that fails try to reconstruct the arguments
     
    7374        // By now we should definately have the arguments. However the reason we are here is because they are not stored in the config.xml file, to make sure they are stored now.
    7475        if (used_defaults) {
    75         Gatherer.config.setArgumentsLanguage("en");
     76        Configuration.setArgumentsLanguage("en");
    7677        } else {
    77         Gatherer.config.setArgumentsLanguage(interface_lang);
    78         }
    79         Gatherer.config.setArguments(build_arguments_element);
    80         Gatherer.config.setArguments(import_arguments_element);
     78        Configuration.setArgumentsLanguage(interface_lang);
     79        }
     80        Configuration.setArguments(build_arguments_element);
     81        Configuration.setArguments(import_arguments_element);
    8182    }
    8283    else {
     
    397398        if(Utility.isWindows()) {
    398399            args = new String[6];
    399             args[0] = Gatherer.config.perl_path;
     400            args[0] = Configuration.perl_path;
    400401            args[1] = "-S";
    401             args[2] = Gatherer.config.getScriptPath() + filename;
     402            args[2] = Configuration.getScriptPath() + filename;
    402403            args[3] = "-xml";
    403404            args[4] = "-language";
     
    406407        else {
    407408            args = new String[4];
    408             args[0] = Gatherer.config.getScriptPath() + filename;
     409            args[0] = Configuration.getScriptPath() + filename;
    409410            args[1] = "-xml";
    410411            args[2] = "-language";
  • trunk/gli/src/org/greenstone/gatherer/collection/Collection.java

    r8015 r8231  
    4141import javax.swing.*;
    4242import javax.swing.tree.*;
     43import org.greenstone.gatherer.Configuration;
    4344import org.greenstone.gatherer.Gatherer;
    4445import org.greenstone.gatherer.cdm.CollectionDesignManager;
     
    105106    }
    106107    // Point the Configuration class at our gatherer config arguments.
    107     Gatherer.config.setCollectionConfiguration(document);
     108    Configuration.setCollectionConfiguration(document);
    108109    // Finally create all of the child managers that are directly dependant on a collection
    109110    build_options = new BuildOptions(getBuildValues(), getImportValues());
     
    119120    gdm.destroy();
    120121    msm.destroy();
    121     Gatherer.config.setCollectionConfiguration(null);
     122    Configuration.setCollectionConfiguration(null);
    122123    cdm = null;
    123124    document = null;
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r8214 r8231  
    4444import javax.swing.filechooser.FileSystemView;
    4545import javax.swing.tree.*;
     46import org.greenstone.gatherer.Configuration;
    4647import org.greenstone.gatherer.Dictionary;
    4748import org.greenstone.gatherer.Gatherer;
     
    133134    public void addDirectoryMapping(String name, File file) {
    134135    // Update the information stored in the Gatherer config
    135     Gatherer.config.addDirectoryMapping(name, file);
     136    Configuration.addDirectoryMapping(name, file);
    136137    // Now update the tree
    137138    Gatherer.g_man.refreshWorkspaceTree(WorkspaceTree.FOLDER_SHORTCUTS_CHANGED);
     
    150151    Gatherer.println("CollectionManager.buildCollection()");
    151152    building = true;
    152     String lang = Gatherer.config.getLanguage();
     153    String lang = Configuration.getLanguage();
    153154    String collect_dir = getCollectDirectory();
    154155
     
    156157    if((Utility.isWindows()) && (!Gatherer.isGsdlRemote)) {
    157158        args = new String[8];
    158         args[0] = Gatherer.config.perl_path;
     159        args[0] = Configuration.perl_path;
    159160        args[1] = "-S";
    160         args[2] = Gatherer.config.getScriptPath() + "buildcol.pl";
     161        args[2] = Configuration.getScriptPath() + "buildcol.pl";
    161162        args[3] = "-gli";
    162163        args[4] = "-language";
     
    167168    else {
    168169        args = new String[6];
    169         args[0] = Gatherer.config.getScriptPath() + "buildcol.pl";
     170        args[0] = Configuration.getScriptPath() + "buildcol.pl";
    170171        args[1] = "-gli";
    171172        args[2] = "-language";
     
    219220    String collection_dir;
    220221    if (Gatherer.GS3) {
    221         collection_dir = Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, collection.getName());
     222        collection_dir = Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName());
    222223    } else {
    223         collection_dir = Utility.getCollectionDir(Gatherer.config.gsdl_path, collection.getName());
     224        collection_dir = Utility.getCollectionDir(Configuration.gsdl_path, collection.getName());
    224225
    225226    }
     
    233234    collection_model = null;
    234235    // workspace_model = null;
    235     Gatherer.config.setCollectionConfiguration(null);
     236    Configuration.setCollectionConfiguration(null);
    236237    if (Gatherer.g_man != null) {
    237238        Gatherer.g_man.collectionChanged(false);
     
    255256    if((Utility.isWindows()) && (!Gatherer.isGsdlRemote)) {
    256257        command = new String[6];
    257         command[0] = Gatherer.config.perl_path;
     258        command[0] = Configuration.perl_path;
    258259        command[1] = "-S";
    259         command[2] = Gatherer.config.getGS3ScriptPath() + "convert_coll_from_gs2.pl";
     260        command[2] = Configuration.getGS3ScriptPath() + "convert_coll_from_gs2.pl";
    260261        command[3] = "-collectdir";
    261262        command[4] = collect_dir;
     
    263264    } else {
    264265        command = new String[4];
    265         command[0] = Gatherer.config.getGS3ScriptPath() + "convert_coll_from_gs2.pl";
     266        command[0] = Configuration.getGS3ScriptPath() + "convert_coll_from_gs2.pl";
    266267        command[1] = "-collectdir";
    267268        command[2] = collect_dir;
     
    341342        String a_dir;
    342343        if (Gatherer.GS3) {
    343         a_dir = Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, name);
     344        a_dir = Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, name);
    344345        } else {
    345         a_dir = Utility.getCollectionDir(Gatherer.config.gsdl_path, name);
     346        a_dir = Utility.getCollectionDir(Configuration.gsdl_path, name);
    346347        }
    347348        File config_file = new File(Utility.getConfigFile(a_dir));
     
    599600    public String getCollectionArchive() {
    600601    if (Gatherer.GS3) {
    601         return Utility.getArchiveDir(Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, collection.getName()));
     602        return Utility.getArchiveDir(Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName()));
    602603    } else {
    603         return Utility.getArchiveDir(Utility.getCollectionDir(Gatherer.config.gsdl_path, collection.getName()));
     604        return Utility.getArchiveDir(Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()));
    604605    }
    605606    }
     
    613614    public String getCollectionBuild() {
    614615    if (Gatherer.GS3) {
    615         return Utility.getBuildDir(Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, collection.getName()));
     616        return Utility.getBuildDir(Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName()));
    616617    } else {
    617         return Utility.getBuildDir(Utility.getCollectionDir(Gatherer.config.gsdl_path, collection.getName()));
     618        return Utility.getBuildDir(Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()));
    618619    }
    619620    }
     
    627628    public String getCollectionConfig() {
    628629    if (Gatherer.GS3) {
    629         return Utility.getConfigFile(Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, collection.getName()));
     630        return Utility.getConfigFile(Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName()));
    630631    } else {
    631     return Utility.getConfigFile(Utility.getCollectionDir(Gatherer.config.gsdl_path, collection.getName()));
     632    return Utility.getConfigFile(Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()));
    632633    }
    633634    }
     
    642643    public String getCollectionDirectory() {
    643644    if (Gatherer.GS3) {
    644         return Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, collection.getName());
     645        return Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName());
    645646    } else {
    646         return Utility.getCollectionDir(Gatherer.config.gsdl_path,  collection.getName());
     647        return Utility.getCollectionDir(Configuration.gsdl_path,  collection.getName());
    647648    }
    648649    }
     
    657658    public String getCollectionEtc() {
    658659    if (Gatherer.GS3) {
    659         return Utility.getEtcDir(Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, collection.getName()));
     660        return Utility.getEtcDir(Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName()));
    660661    } else {
    661     return Utility.getEtcDir(Utility.getCollectionDir(Gatherer.config.gsdl_path, collection.getName()));
     662    return Utility.getEtcDir(Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()));
    662663    }
    663664    }
     
    671672    public String getCollectionFilename() {
    672673    if (Gatherer.GS3) {
    673         return Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, collection.getName()) + collection.getName() + ".col";
     674        return Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName()) + collection.getName() + ".col";
    674675    } else {
    675     return Utility.getCollectionDir(Gatherer.config.gsdl_path, collection.getName()) + collection.getName() + ".col";
     676    return Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()) + collection.getName() + ".col";
    676677    }
    677678    }
     
    685686    public String getCollectionImages() {
    686687    if (Gatherer.GS3) {
    687         return Utility.getImagesDir(Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, collection.getName()));
     688        return Utility.getImagesDir(Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName()));
    688689    } else {
    689     return Utility.getImagesDir(Utility.getCollectionDir(Gatherer.config.gsdl_path, collection.getName()));
     690    return Utility.getImagesDir(Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()));
    690691    }
    691692    }
     
    699700    public String getCollectionImport() {
    700701    if (Gatherer.GS3) {
    701         return Utility.getImportDir(Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, collection.getName()));
     702        return Utility.getImportDir(Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName()));
    702703    } else {
    703         return Utility.getImportDir(Utility.getCollectionDir(Gatherer.config.gsdl_path, collection.getName()));
     704        return Utility.getImportDir(Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()));
    704705    }
    705706    }
     
    713714    public String getCollectionIndex() {
    714715    if (Gatherer.GS3) {
    715         return Utility.getIndexDir(Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, collection.getName()));
     716        return Utility.getIndexDir(Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName()));
    716717    } else {
    717         return Utility.getIndexDir(Utility.getCollectionDir(Gatherer.config.gsdl_path, collection.getName()));
     718        return Utility.getIndexDir(Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()));
    718719    }
    719720    }
     
    727728    public String getCollectionLog() {
    728729    if (Gatherer.GS3) {
    729         return Utility.getLogDir(Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, collection.getName()));
     730        return Utility.getLogDir(Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName()));
    730731    } else {
    731         return Utility.getLogDir(Utility.getCollectionDir(Gatherer.config.gsdl_path, collection.getName()));
     732        return Utility.getLogDir(Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()));
    732733    }
    733734    }
     
    741742    public String getCollectionMetadata() {
    742743    if (Gatherer.GS3) {
    743         return Utility.getMetadataDir(Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, collection.getName()));
     744        return Utility.getMetadataDir(Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getName()));
    744745    } else {
    745         return Utility.getMetadataDir(Utility.getCollectionDir(Gatherer.config.gsdl_path, collection.getName()));
     746        return Utility.getMetadataDir(Utility.getCollectionDir(Configuration.gsdl_path, collection.getName()));
    746747    }
    747748    }
     
    784785    {
    785786    // Return any predefined special directories
    786     HashMap mappings = Gatherer.config.getDirectoryMappings();
     787    HashMap mappings = Configuration.getDirectoryMappings();
    787788    FileNode[] mapping_nodes = new FileNode[mappings.size()];
    788789    Iterator mappings_iterator = mappings.keySet().iterator();
     
    845846
    846847        String args[];
    847         String lang = Gatherer.config.getLanguage();
     848        String lang = Configuration.getLanguage();
    848849        if((Utility.isWindows()) && (!Gatherer.isGsdlRemote)) {
    849850        args = new String[8];
    850         args[0] = Gatherer.config.perl_path;
     851        args[0] = Configuration.perl_path;
    851852        args[1] = "-S";
    852         args[2] = Gatherer.config.getScriptPath() + "import.pl";
     853        args[2] = Configuration.getScriptPath() + "import.pl";
    853854        args[3] = "-gli";
    854855        args[4] = "-language";
     
    859860        else {
    860861        args = new String[6];
    861         args[0] = Gatherer.config.getScriptPath() + "import.pl";
     862        args[0] = Configuration.getScriptPath() + "import.pl";
    862863        args[1] = "-gli";
    863864        args[2] = "-language";
     
    10551056        if(description == null || title == null) {
    10561057        command = new String[8];
    1057         command[0] = Gatherer.config.perl_path;
     1058        command[0] = Configuration.perl_path;
    10581059        command[1] = "-S";
    1059         command[2] = Gatherer.config.getScriptPath() + "mkcol.pl";
     1060        command[2] = Configuration.getScriptPath() + "mkcol.pl";
    10601061        command[3] = "-collectdir";
    10611062        command[4] = collect_dir;
     
    10671068        else if(email == null) {
    10681069        command = new String[12];
    1069         command[0] = Gatherer.config.perl_path;
     1070        command[0] = Configuration.perl_path;
    10701071        command[1] = "-S";
    1071         command[2] = Gatherer.config.getScriptPath() + "mkcol.pl";
     1072        command[2] = Configuration.getScriptPath() + "mkcol.pl";
    10721073        command[3] = "-collectdir";
    10731074        command[4] = collect_dir;
     
    10821083        else {
    10831084        command = new String[14];
    1084         command[0] = Gatherer.config.perl_path;
     1085        command[0] = Configuration.perl_path;
    10851086        command[1] = "-S";
    1086         command[2] = Gatherer.config.getScriptPath() + "mkcol.pl";
     1087        command[2] = Configuration.getScriptPath() + "mkcol.pl";
    10871088        command[3] = "-collectdir";
    10881089        command[4] = collect_dir;
     
    11861187        if(installCollection()) {
    11871188        // If we have a local library running (that we know about) then we ask it to add our newly create collection
    1188         if (Gatherer.config.exec_file != null) {
     1189        if (Configuration.exec_file != null) {
    11891190            Gatherer.self.configServer(GSDLSiteConfig.ADD_COMMAND + collection.getName());
    11901191            // This is very important -- it ensures that the above command has finished
     
    11931194        else if (Gatherer.GS3) {
    11941195            convertToGS3Collection();
    1195             Gatherer.self.configGS3Server(Gatherer.config.site_name, ServletConfiguration.ADD_COMMAND + collection.getName());
     1196            Gatherer.self.configGS3Server(Configuration.site_name, ServletConfiguration.ADD_COMMAND + collection.getName());
    11961197        } 
    11971198
     
    12761277    public File removeDirectoryMapping(FileNode target) {
    12771278    // Remove from config, remembering file
    1278     File file = Gatherer.config.removeDirectoryMapping(target.toString());
     1279    File file = Configuration.removeDirectoryMapping(target.toString());
    12791280    // Update tree.
    12801281    Gatherer.g_man.refreshWorkspaceTree(WorkspaceTree.FOLDER_SHORTCUTS_CHANGED);
     
    13331334    /* private void updatePrivateWorkspace(DefaultTreeModel model) {
    13341335    // Add Private workspace if a collection has been loaded.
    1335     if(ready() && !Gatherer.config.get("workflow.mirror", true)) {
     1336    if(ready() && !Configuration.get("workflow.mirror", true)) {
    13361337        FileNode root = (FileNode)model.getRoot();
    13371338                // Remove old private workspace
     
    14091410    String collect_dir;
    14101411    if (Gatherer.GS3) {
    1411         collect_dir = Utility.getCollectDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name);
     1412        collect_dir = Utility.getCollectDir(Configuration.gsdl3_path, Configuration.site_name);
    14121413    } else {
    1413         collect_dir = Utility.getCollectDir(Gatherer.config.gsdl_path);
     1414        collect_dir = Utility.getCollectDir(Configuration.gsdl_path);
    14141415    }
    14151416
     
    14311432    try {
    14321433        // We have to ensure that the local library has released this collection so we can delete the index directory
    1433         if (!Gatherer.GS3 && Gatherer.config.exec_file != null) {
     1434        if (!Gatherer.GS3 && Configuration.exec_file != null) {
    14341435        Gatherer.self.configServer(GSDLSiteConfig.RELEASE_COMMAND + collection.getName());
    14351436
  • trunk/gli/src/org/greenstone/gatherer/collection/DeleteCollectionPrompt.java

    r7740 r8231  
    4343import javax.swing.*;
    4444import javax.swing.event.*;
     45import org.greenstone.gatherer.Configuration;
    4546import org.greenstone.gatherer.Dictionary;
    4647import org.greenstone.gatherer.Gatherer;
     
    104105    details = new JTextArea();
    105106    details.setEditable(false);
    106     details.setFont(Gatherer.config.getFont("general.tooltip_font", false));
     107    details.setFont(Configuration.getFont("general.tooltip_font", false));
    107108    Dictionary.setText(details, "DeleteCollectionPrompt.No_Collection");
    108109    details_label = new JLabel();
     
    188189
    189190    // Center and display.
    190     Dimension screen_size = Gatherer.config.screen_size;
     191    Dimension screen_size = Configuration.screen_size;
    191192    this.setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2);
    192193    this.setVisible(true); // blocks until the dialog is killed
     
    220221    File collect_directory;
    221222    if (Gatherer.GS3) {
    222         collect_directory = new File(Utility.getCollectDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name));
     223        collect_directory = new File(Utility.getCollectDir(Configuration.gsdl3_path, Configuration.site_name));
    223224    } else {
    224         collect_directory = new File(Utility.getCollectDir(Gatherer.config.gsdl_path));
     225        collect_directory = new File(Utility.getCollectDir(Configuration.gsdl_path));
    225226    }
    226227    if(collect_directory.exists()) {
     
    309310
    310311        // first of all we must release it from the local library
    311         if (Gatherer.config.exec_file != null) {
     312        if (Configuration.exec_file != null) {
    312313        ///ystem.err.println("Local Library Found!");
    313314        Gatherer.self.configServer(GSDLSiteConfig.RELEASE_COMMAND + collection.getShortName());
     
    356357        File delete_me;
    357358        if (Gatherer.GS3) {
    358         delete_me = new File(Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, collection.getShortName()));
     359        delete_me = new File(Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, collection.getShortName()));
    359360        } else {
    360         delete_me = new File(Utility.getCollectionDir(Gatherer.config.gsdl_path, collection.getShortName()));
     361        delete_me = new File(Utility.getCollectionDir(Configuration.gsdl_path, collection.getShortName()));
    361362        }
    362363        if (Utility.delete(delete_me)) {
  • trunk/gli/src/org/greenstone/gatherer/collection/DownloadJob.java

    r7699 r8231  
    4242import java.util.*;
    4343import javax.swing.tree.*;
     44import org.greenstone.gatherer.Configuration;
    4445import org.greenstone.gatherer.Dictionary;
    4546import org.greenstone.gatherer.Gatherer;
     
    206207
    207208    // want to always download newer files,  convert non-relative links to relative, always use directories, and only try twice to get a file before giving up
    208     String command = Gatherer.config.getWGetPath() + " -N -k -x -t 2 "; // + " -nc -c ";
     209    String command = Configuration.getWGetPath() + " -N -k -x -t 2 "; // + " -nc -c ";
    209210
    210211    if (no_parents) {
     
    225226    String proxy_url = "";
    226227    // Determine if we have to use a proxy.
    227     if(Gatherer.config.get("general.use_proxy", true)) {
    228         String proxy_host = Gatherer.config.getString("general.proxy_host", true);
    229         String proxy_port = Gatherer.config.getString("general.proxy_port", true);
     228    if(Configuration.get("general.use_proxy", true)) {
     229        String proxy_host = Configuration.getString("general.proxy_host", true);
     230        String proxy_port = Configuration.getString("general.proxy_port", true);
    230231        // Find out whether the user has already authenticated themselves
    231232        String user_pass = null;
  • trunk/gli/src/org/greenstone/gatherer/collection/ExportCollectionPrompt.java

    r7326 r8231  
    4545import org.greenstone.gatherer.checklist.CheckList;
    4646import org.greenstone.gatherer.checklist.Entry;
     47import org.greenstone.gatherer.Configuration;
    4748import org.greenstone.gatherer.Dictionary;
    4849import org.greenstone.gatherer.Gatherer;
     
    120121    details_textarea = new JTextArea();
    121122    details_textarea.setEditable(false);
    122     details_textarea.setFont(Gatherer.config.getFont("general.tooltip_font", false));
     123    details_textarea.setFont(Configuration.getFont("general.tooltip_font", false));
    123124    Dictionary.setText(details_textarea, "DeleteCollectionPrompt.No_Collection");
    124125    details_label = new JLabel();
     
    232233
    233234    // Center and display.
    234     Dimension screen_size = Gatherer.config.screen_size;
     235    Dimension screen_size = Configuration.screen_size;
    235236    this.setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2);
    236237    this.setVisible(true); // blocks until the dialog is killed
     
    268269    if(Utility.isWindows()) {
    269270        args = new String[num_args+2];
    270         args[0] = Gatherer.config.perl_path;
     271        args[0] = Configuration.perl_path;
    271272        args[1] = "-S";
    272273        next_arg = 2;
     
    275276    }
    276277   
    277     args[next_arg] = Gatherer.config.getScriptPath() + "exportcol.pl";
     278    args[next_arg] = Configuration.getScriptPath() + "exportcol.pl";
    278279    next_arg++;
    279280    args[next_arg] = "-gli"; next_arg++;
    280281    args[next_arg] = "-language"; next_arg++;
    281     args[next_arg] = Gatherer.config.getLanguage(); next_arg++;
     282    args[next_arg] = Configuration.getLanguage(); next_arg++;
    282283
    283284    if (has_title) {
     
    317318   
    318319    args[0] = coll_names.toString();
    319     args[1] = Gatherer.config.gsdl_path+"tmp"+File.separator;
     320    args[1] = Configuration.gsdl_path+"tmp"+File.separator;
    320321    if(cd_title.equals("")) {
    321322        args[1] += "exported_collections";
     
    347348    File collect_directory;
    348349    if (Gatherer.GS3) {
    349         collect_directory = new File(Utility.getCollectDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name));
     350        collect_directory = new File(Utility.getCollectDir(Configuration.gsdl3_path, Configuration.site_name));
    350351    } else {
    351         collect_directory = new File(Utility.getCollectDir(Gatherer.config.gsdl_path));
     352        collect_directory = new File(Utility.getCollectDir(Configuration.gsdl_path));
    352353    }
    353354    if(collect_directory.exists()) {
  • trunk/gli/src/org/greenstone/gatherer/collection/SaveCollectionTask.java

    r8043 r8231  
    4040import java.util.*;
    4141import javax.swing.*;
     42import org.greenstone.gatherer.Configuration;
    4243import org.greenstone.gatherer.Gatherer;
    4344import org.greenstone.gatherer.collection.Collection;
     
    164165        File copied_dir;
    165166        if (Gatherer.GS3) {
    166         copied_dir = new File(Utility.getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, name));
     167        copied_dir = new File(Utility.getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, name));
    167168        } else {
    168         copied_dir = new File(Utility.getCollectionDir(Gatherer.config.gsdl_path, name));
     169        copied_dir = new File(Utility.getCollectionDir(Configuration.gsdl_path, name));
    169170        }
    170171        files.add(collection_file.getParentFile());
  • trunk/gli/src/org/greenstone/gatherer/file/FileAssociationManager.java

    r8015 r8231  
    2929import java.io.*;
    3030import javax.swing.table.*;
     31import org.greenstone.gatherer.Configuration;
    3132import org.greenstone.gatherer.Dictionary;
    3233import org.greenstone.gatherer.Gatherer;
     
    5152    public FileAssociationManager() {
    5253    // Retrieve the associations_element from the config
    53     associations_element = Gatherer.config.getFileAssociations();
     54    associations_element = Configuration.getFileAssociations();
    5455    // Initialize the associations. This involves looking through all current associations searching for those with a command of "".
    5556    if(associations_element != null) {
     
    9293    Gatherer.println("Get browser command: " + url);
    9394    // First off we try to retrieve one from the configuration
    94     String command = Gatherer.config.getPreviewCommand();
     95    String command = Configuration.getPreviewCommand();
    9596    // If that worked, substitute in the url and return
    9697    if(command != null && command.length() > 0) {
     
    131132    // Store the result if any
    132133    if(command != null && !command.equals("")) {
    133         Gatherer.config.setPreviewCommand(command);
     134        Configuration.setPreviewCommand(command);
    134135        command = command.replaceAll(FILENAME_ARG, url);
    135136        Gatherer.println("Result = " + command);
  • trunk/gli/src/org/greenstone/gatherer/file/FileNode.java

    r7641 r8231  
    77import javax.swing.filechooser.*;
    88import javax.swing.tree.*;
     9import org.greenstone.gatherer.Configuration;
    910import org.greenstone.gatherer.Dictionary;
    1011import org.greenstone.gatherer.Gatherer;
     
    272273        // the Greenstone collections folder for GS3 - this contains a
    273274        // folder for each site
    274         File start = new File(Utility.getSitesDir(Gatherer.config.gsdl3_path));
     275        File start = new File(Utility.getSitesDir(Configuration.gsdl3_path));
    275276        File sites[] = start.listFiles();
    276277        ArrayTools.sort(sites);
     
    297298        File start;
    298299        if (gs3_site) {
    299             start = new File(Utility.getCollectDir(Gatherer.config.gsdl3_path, title));
     300            start = new File(Utility.getCollectDir(Configuration.gsdl3_path, title));
    300301        } else {
    301             start = new File(Utility.getCollectDir(Gatherer.config.gsdl_path));
     302            start = new File(Utility.getCollectDir(Configuration.gsdl_path));
    302303        }
    303304        File cols[] = start.listFiles();
  • trunk/gli/src/org/greenstone/gatherer/file/FileQueue.java

    r8041 r8231  
    9090    Dictionary.setText(file_status, "FileActions.Selected", args);
    9191    progress = new LongProgressBar();
    92     progress.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    93     progress.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
     92    progress.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     93    progress.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
    9494    progress.setString(Dictionary.get("FileActions.No_Activity"));
    9595    progress.setStringPainted(true);
     
    234234
    235235            // The number one thing to check is whether we are in a cyclic loop. The easiest way is just to check how deep we are
    236             int max_folder_depth = Gatherer.config.getInt("general.max_folder_depth", Configuration.COLLECTION_SPECIFIC);
     236            int max_folder_depth = Configuration.getInt("general.max_folder_depth", Configuration.COLLECTION_SPECIFIC);
    237237            boolean continue_over_depth = false;
    238238            if(FileManager.countFolderDepth(source_file) > max_folder_depth) {
     
    248248                case 2: // Continue and increase depth
    249249                continue_over_depth = true;
    250                 Gatherer.config.setInt("general.max_folder_depth", Configuration.COLLECTION_SPECIFIC, (max_folder_depth + 1));
     250                Configuration.setInt("general.max_folder_depth", Configuration.COLLECTION_SPECIFIC, (max_folder_depth + 1));
    251251                break;
    252252                }
  • trunk/gli/src/org/greenstone/gatherer/file/RecycleBin.java

    r8045 r8231  
    4646import javax.swing.*;
    4747import javax.swing.tree.*;
     48import org.greenstone.gatherer.Configuration;
    4849import org.greenstone.gatherer.Gatherer;
    4950import org.greenstone.gatherer.file.FileNode;
     
    7778    this.drop_target = new DropTarget(this, drag_action, this, true);
    7879
    79     setBackground(Gatherer.config.getColor("coloring.button_background", true));
    80     setForeground(Gatherer.config.getColor("coloring.button_foreground", true));
     80    setBackground(Configuration.getColor("coloring.button_background", true));
     81    setForeground(Configuration.getColor("coloring.button_foreground", true));
    8182    setOpaque(true);
    8283
     
    9394    public void dragEnter(DropTargetDragEvent event) {
    9495    group.grabFocus(this);
    95     setBackground(Gatherer.config.getColor("coloring.button_selected_background", true));
    96     setForeground(Gatherer.config.getColor("coloring.button_selected_foreground", true));
     96    setBackground(Configuration.getColor("coloring.button_selected_background", true));
     97    setForeground(Configuration.getColor("coloring.button_selected_foreground", true));
    9798    }
    9899
    99100    /** Any implementation of DropTargetListener must include this method so we can be notified when the drag focus leaves this component. We need to indicate that we have lost focus. */
    100101    public void dragExit(DropTargetEvent event) {
    101     setBackground(Gatherer.config.getColor("coloring.button_background", true));
    102     setForeground(Gatherer.config.getColor("coloring.button_foreground", true));
     102    setBackground(Configuration.getColor("coloring.button_background", true));
     103    setForeground(Configuration.getColor("coloring.button_foreground", true));
    103104    }
    104105
     
    125126    ignore = true;
    126127    group.grabFocus(this);
    127     setBackground(Gatherer.config.getColor("coloring.button_background", true));
    128     setForeground(Gatherer.config.getColor("coloring.button_foreground", true));
     128    setBackground(Configuration.getColor("coloring.button_background", true));
     129    setForeground(Configuration.getColor("coloring.button_foreground", true));
    129130    Transferable transferable = event.getTransferable();
    130131    try {
  • trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java

    r7521 r8231  
    292292    }
    293293    // If we are in simple mode, we have to rebuild the simple arguments list
    294     if(Gatherer.config.getMode() < THRESHOLD) {
     294    if(Configuration.getMode() < THRESHOLD) {
    295295        souter_panel.remove(sargument_configuration_scroll);
    296296        souter_panel.remove(sinner_panel);
     
    305305   
    306306    // now do the preview stuff
    307     if (!Gatherer.c_man.built() || Gatherer.config.exec_address == null) {
     307    if (!Gatherer.c_man.built() || Configuration.exec_address == null) {
    308308        preview_button.setEnabled(false);
    309309        simple_preview_button.setEnabled(false);
     
    326326    public void display() {
    327327
    328     int current_mode = Gatherer.config.getMode();
     328    int current_mode = Configuration.getMode();
    329329
    330330    // Build control_pane
     
    438438     */
    439439    public void gainFocus() {
    440     if(Gatherer.config.getMode() < THRESHOLD) {
     440    if(Configuration.getMode() < THRESHOLD) {
    441441        card_layout.show(main_pane, SIMPLE);
    442442    }
     
    479479    public void modeChanged(int mode) {
    480480    // If we are below the complexity threshold ensure the simple controls are being shown
    481     if(Gatherer.config.getMode() < THRESHOLD) {
     481    if(Configuration.getMode() < THRESHOLD) {
    482482        // Update the arguments
    483483        souter_panel.remove(sargument_configuration_scroll);
     
    544544        build_monitor.reset();
    545545        import_monitor.reset();
    546         if(Gatherer.config.getMode() >= THRESHOLD) {
     546        if(Configuration.getMode() >= THRESHOLD) {
    547547            control_pane.add(button_pane, BorderLayout.SOUTH);
    548548            card_layout.show(main_pane, CONTROL);
     
    568568        }
    569569        options_pane.resetFileEntry();
    570         if(Gatherer.config.getMode() >= THRESHOLD) {
     570        if(Configuration.getMode() >= THRESHOLD) {
    571571        control_pane.add(button_pane, BorderLayout.SOUTH);
    572572        card_layout.show(main_pane, CONTROL);
     
    578578    // set up the home page for the current collection
    579579    Collection current_collection = Gatherer.c_man.getCollection();
    580     String site = Gatherer.config.site_name; // for GS3 colls
     580    String site = Configuration.site_name; // for GS3 colls
    581581    String extra_args = "";
    582582    SearchTypeManager st_man = current_collection.cdm.searchtype_manager;
     
    598598    // Remember to add unique timestamp
    599599    if (Gatherer.GS3) {
    600         homepage = Gatherer.config.exec_address.toString() + Gatherer.config.getServletPath()+ "?a=p&sa=about&c=" + current_collection.getName()+"&l="+Gatherer.config.getLanguage(); //+extra_args + StaticStrings.TIMESTAMP_ARGUMENT + System.currentTimeMillis();
     600        homepage = Configuration.exec_address.toString() + Configuration.getServletPath()+ "?a=p&sa=about&c=" + current_collection.getName()+"&l="+Configuration.getLanguage(); //+extra_args + StaticStrings.TIMESTAMP_ARGUMENT + System.currentTimeMillis();
    601601    } else {
    602         homepage = Gatherer.config.exec_address.toString() + "?a=p&p=about&c=" + current_collection.getName()+"&l="+Gatherer.config.getLanguage()+extra_args + StaticStrings.TIMESTAMP_ARGUMENT + System.currentTimeMillis();
     602        homepage = Configuration.exec_address.toString() + "?a=p&p=about&c=" + current_collection.getName()+"&l="+Configuration.getLanguage()+extra_args + StaticStrings.TIMESTAMP_ARGUMENT + System.currentTimeMillis();
    603603    }
    604604    }
     
    620620       
    621621        // Remember that for lower thresholds the above doesn't work, so try this instead
    622         if(Gatherer.config.getMode() < THRESHOLD) {
     622        if(Configuration.getMode() < THRESHOLD) {
    623623        options_pane.update(sargument_configuration_panel);
    624624        }
     
    638638        // Change the view.
    639639        processing = true;
    640         if(Gatherer.config.getMode() >= THRESHOLD) {
     640        if(Configuration.getMode() >= THRESHOLD) {
    641641        progress_pane.add(button_pane, BorderLayout.SOUTH);
    642642        card_layout.show(main_pane, PROGRESS);
     
    674674        processing = false;
    675675        document.setSpecialCharacter(OptionsPane.CANCELLED);
    676         if(Gatherer.config.getMode() >= THRESHOLD) {
     676        if(Configuration.getMode() >= THRESHOLD) {
    677677        control_pane.add(button_pane, BorderLayout.SOUTH);
    678678        card_layout.show(main_pane, CONTROL);
  • trunk/gli/src/org/greenstone/gatherer/gui/EditorDialog.java

    r7246 r8231  
    4040import java.awt.event.*;
    4141import javax.swing.*;
     42import org.greenstone.gatherer.Configuration;
    4243import org.greenstone.gatherer.Dictionary;
    4344import org.greenstone.gatherer.Gatherer;
     
    134135    content_pane.add(button_pane, BorderLayout.SOUTH);
    135136         
    136     Dimension screen_size = Gatherer.config.screen_size;
     137    Dimension screen_size = Configuration.screen_size;
    137138    setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2);
    138139    setVisible(true);
  • trunk/gli/src/org/greenstone/gatherer/gui/EnrichPane.java

    r8004 r8231  
    324324        Dictionary.registerText(collection_label, "Collection.Collection");
    325325        // Update label coloring.
    326         collection_label.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
    327         collection_label.setForeground(Gatherer.config.getColor("coloring.collection_heading_foreground", false));
     326        collection_label.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
     327        collection_label.setForeground(Configuration.getColor("coloring.collection_heading_foreground", false));
    328328        collection_tree.setModel(collection_model);
    329329        // Update tree coloring.
    330         collection_tree.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    331         collection_tree.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
     330        collection_tree.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     331        collection_tree.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
    332332        // Register our msm dependant components (or correctly their models) with msm.
    333333        if (model != null) {
     
    400400
    401401    filter = Gatherer.g_man.getFilter(collection_tree);
    402     filter.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
    403     filter.setEditable(Gatherer.config.getMode() > Configuration.LIBRARIAN_MODE);
     402    filter.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
     403    filter.setEditable(Configuration.getMode() > Configuration.LIBRARIAN_MODE);
    404404    Dictionary.registerTooltip(filter.getComboBox(), "Collection.Filter_Tooltip");
    405405
     
    433433
    434434    table_label = new JTextField();
    435     table_label.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     435    table_label.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    436436    table_label.setEditable(false);
    437437    Dictionary.registerText(table_label, "MetaEdit.No_File");
     
    494494
    495495    JScrollPane table_scroll = new JScrollPane(table);
    496     table_scroll.getViewport().setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     496    table_scroll.getViewport().setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    497497    table_scroll.setOpaque(true);
    498498
     
    12021202        super();
    12031203
    1204         setFont(Gatherer.config.getFont("general.font", false));
     1204        setFont(Configuration.getFont("general.font", false));
    12051205        setPreferredSize(new Dimension(width, height));
    12061206
     
    12131213        JPanel value_field_pane = new JPanel();
    12141214        value = new JTextField();
    1215         value.setBackground(Gatherer.config.getColor("coloring.editable_background", false));
    1216         value.setForeground(Gatherer.config.getColor("coloring.editable_foreground", false));
     1215        value.setBackground(Configuration.getColor("coloring.editable_background", false));
     1216        value.setForeground(Configuration.getColor("coloring.editable_foreground", false));
    12171217        value.setPreferredSize(new Dimension(413, 24));
    12181218        value.getDocument().addDocumentListener(new DocumentListenerImpl());
  • trunk/gli/src/org/greenstone/gatherer/gui/ExternalCollectionPrompt.java

    r7999 r8231  
    4343import javax.swing.*;
    4444import javax.swing.event.*;
     45import org.greenstone.gatherer.Configuration;
    4546import org.greenstone.gatherer.Dictionary;
    4647import org.greenstone.gatherer.Gatherer;
     
    8990
    9091    /*  new_mds_button = new JRadioButton();
    91     new_mds_button.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     92    new_mds_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    9293    //new_mds_button.setMnemonic(KeyEvent.VK_I);
    9394    new_mds_button.setOpaque(false);
    9495    Dictionary.registerText(new_mds_button, "ExternalCollectionPrompt.NewMDS");
    9596    existing_mds_button = new JRadioButton();
    96     existing_mds_button.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     97    existing_mds_button.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    9798    //existing_mds_button.setMnemonic(KeyEvent.VK_X);
    9899    existing_mds_button.setOpaque(false);
     
    143144
    144145    // Show
    145     Dimension screen_size = Gatherer.config.screen_size;
     146    Dimension screen_size = Configuration.screen_size;
    146147    setLocation((screen_size.width - size.width) / 2, (screen_size.height - size.height) / 2);
    147148    setVisible(true);
  • trunk/gli/src/org/greenstone/gatherer/gui/FileAssociationDialog.java

    r8019 r8231  
    4545import javax.swing.filechooser.*;
    4646import javax.swing.table.*;
     47import org.greenstone.gatherer.Configuration;
    4748import org.greenstone.gatherer.Dictionary;
    4849import org.greenstone.gatherer.Gatherer;
     
    9293
    9394    JPanel content_pane = (JPanel) getContentPane();
    94     content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     95    content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    9596
    9697    JTextArea instructions_area = new JTextArea();
  • trunk/gli/src/org/greenstone/gatherer/gui/GComboBox.java

    r8169 r8231  
    4141import javax.swing.*;
    4242import javax.swing.plaf.basic.*;
     43import org.greenstone.gatherer.Configuration;
    4344import org.greenstone.gatherer.Gatherer;
    4445
     
    154155
    155156    // Initialization
    156     this.background = Gatherer.config.getColor("coloring.collection_tree_background", false);
    157     this.foreground = Gatherer.config.getColor("coloring.collection_tree_foreground", false);
    158     this.editable_background = Gatherer.config.getColor("coloring.editable_background", false);
    159     this.editable_foreground = Gatherer.config.getColor("coloring.editable_foreground", false);
    160     this.selection_background = Gatherer.config.getColor("coloring.collection_selection_background", false);
    161     this.selection_foreground = Gatherer.config.getColor("coloring.collection_selection_foreground", false);
     157    this.background = Configuration.getColor("coloring.collection_tree_background", false);
     158    this.foreground = Configuration.getColor("coloring.collection_tree_foreground", false);
     159    this.editable_background = Configuration.getColor("coloring.editable_background", false);
     160    this.editable_foreground = Configuration.getColor("coloring.editable_foreground", false);
     161    this.selection_background = Configuration.getColor("coloring.collection_selection_background", false);
     162    this.selection_foreground = Configuration.getColor("coloring.collection_selection_foreground", false);
    162163    if (isEditable()) {
    163164        this.setBackground(editable_background);
     
    350351
    351352    public void setButtonBackground() {
    352         arrowButton.setBackground(Gatherer.config.getColor("coloring.button_background", false));
     353        arrowButton.setBackground(Configuration.getColor("coloring.button_background", false));
    353354    }
    354355    }
  • trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r8038 r8231  
    331331     */
    332332    public void collectionChanged(final boolean ready) {
    333     if(Gatherer.config.get("workflow.mirror", true)) {
     333    if(Configuration.get("workflow.mirror", true)) {
    334334        mirror_pane.collectionChanged(ready);
    335335    }
     
    413413        tab_pane = new JTabbedPane();
    414414        tab_pane.addChangeListener(this);
    415         tab_pane.setFont(Gatherer.config.getFont("general.font", false));
    416 
    417         if(Gatherer.config.get(StaticStrings.WORKFLOW_MIRROR, true)) {
     415        tab_pane.setFont(Configuration.getFont("general.font", false));
     416
     417        if(Configuration.get(StaticStrings.WORKFLOW_MIRROR, true)) {
    418418        mirror_pane = new MirrorPane();
    419419        tab_pane.addTab("GUI.Mirror", Utility.getImage("mirroring.gif"), mirror_pane);
    420         tab_pane.setEnabledAt(tab_pane.indexOfComponent(mirror_pane), Gatherer.config.get(StaticStrings.WORKFLOW_MIRROR, false));
     420        tab_pane.setEnabledAt(tab_pane.indexOfComponent(mirror_pane), Configuration.get(StaticStrings.WORKFLOW_MIRROR, false));
    421421        }
    422422
    423423        gather_pane = new GatherPane(workspace_tree_sync, collection_tree_sync);
    424424        gather_pane.display();
    425         if(Gatherer.config.get("workflow.gather", true)) {
     425        if(Configuration.get("workflow.gather", true)) {
    426426        tab_pane.addTab("GUI.Gather", Utility.getImage("collection.gif"), gather_pane);
    427         tab_pane.setEnabledAt(tab_pane.indexOfComponent(gather_pane), Gatherer.config.get("workflow.gather", false));
     427        tab_pane.setEnabledAt(tab_pane.indexOfComponent(gather_pane), Configuration.get("workflow.gather", false));
    428428        }
    429429
    430430        enrich_pane = new EnrichPane(collection_tree_sync);
    431431        enrich_pane.display();
    432         if(Gatherer.config.get("workflow.enrich", true)) {
     432        if(Configuration.get("workflow.enrich", true)) {
    433433        tab_pane.addTab("GUI.Enrich", Utility.getImage("metaedit.gif"), enrich_pane);
    434434        tab_pane.setEnabledAt(tab_pane.indexOfComponent(enrich_pane), false);
     
    437437        design_pane = new DesignPane();
    438438        design_pane.display();
    439         if(Gatherer.config.get("workflow.design", true)) {
     439        if(Configuration.get("workflow.design", true)) {
    440440        tab_pane.addTab("GUI.Design", Utility.getImage("build.gif"), design_pane);
    441441        tab_pane.setEnabledAt(tab_pane.indexOfComponent(design_pane), false);
    442442        }
    443443
    444         if(Gatherer.config.get("workflow.export", true)) {
     444        if(Configuration.get("workflow.export", true)) {
    445445        tab_pane.addTab("GUI.Export", Utility.getImage("export.gif"), export_pane);
    446446        tab_pane.setEnabledAt(tab_pane.indexOfComponent(export_pane), false);
     
    449449        create_pane = new CreatePane();
    450450        create_pane.display();
    451         if(Gatherer.config.get("workflow.create", true)) {
     451        if(Configuration.get("workflow.create", true)) {
    452452        tab_pane.addTab("GUI.Create", Utility.getImage("build session.gif"), create_pane);
    453453        tab_pane.setEnabledAt(tab_pane.indexOfComponent(create_pane), false);
     
    455455
    456456        // Select the collect pane if it is available
    457         if(Gatherer.config.get("workflow.gather", false)) {
     457        if(Configuration.get("workflow.gather", false)) {
    458458        tab_pane.setSelectedComponent(gather_pane);
    459459        }
     
    649649    // Describe the current user mode
    650650    title_buffer.append(StaticStrings.MODE_STR);
    651     title_buffer.append(Gatherer.config.getModeAsString());
     651    title_buffer.append(Configuration.getModeAsString());
    652652    title_buffer.append(StaticStrings.SPACE_CHARACTER);
    653653    title_buffer.append(StaticStrings.SPACE_CHARACTER);
     
    690690        File file;
    691691        if (Gatherer.GS3) {
    692         if (Gatherer.config.gsdl3_path != null) {
    693             file = new File(Utility.getSitesDir(Gatherer.config.gsdl3_path));
     692        if (Configuration.gsdl3_path != null) {
     693            file = new File(Utility.getSitesDir(Configuration.gsdl3_path));
    694694        } else {
    695695            file = new File(Utility.BASE_DIR);
     
    698698        } else {
    699699
    700         if(Gatherer.config.gsdl_path != null) {
    701             file = new File(Utility.getCollectDir(Gatherer.config.gsdl_path));
     700        if(Configuration.gsdl_path != null) {
     701            file = new File(Utility.getCollectDir(Configuration.gsdl_path));
    702702        }
    703703        else {
     
    796796        ///ystem.err.println("Running CreationTask...");
    797797        if(ncm_prompt == null) {
    798         Gatherer.c_man.createCollection(ncd_prompt.getDescription(), Gatherer.config.getEmail(), ncd_prompt.getName(), ncd_prompt.getTitle(), ncd_prompt.getBase(), null);
     798        Gatherer.c_man.createCollection(ncd_prompt.getDescription(), Configuration.getEmail(), ncd_prompt.getName(), ncd_prompt.getTitle(), ncd_prompt.getBase(), null);
    799799        }
    800800        else {
    801         Gatherer.c_man.createCollection(ncd_prompt.getDescription(), Gatherer.config.getEmail(), ncd_prompt.getName(), ncd_prompt.getTitle(), null, ncm_prompt.getSets());
     801        Gatherer.c_man.createCollection(ncd_prompt.getDescription(), Configuration.getEmail(), ncd_prompt.getName(), ncd_prompt.getTitle(), null, ncm_prompt.getSets());
    802802        }
    803803        // Now that the collection specific settings are loaded we can set the 'view extracted metadata' property
    804804        // do we want to have this in here???
    805         //Gatherer.config.set("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC, true);
     805        //Configuration.set("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC, true);
    806806        ncd_prompt.dispose();
    807807        ncd_prompt = null;
     
    10261026        if (mirror_pos != -1) {
    10271027        if (ready) {
    1028             tab_pane.setEnabledAt(mirror_pos, Gatherer.config.get("workflow.mirror", false));
     1028            tab_pane.setEnabledAt(mirror_pos, Configuration.get("workflow.mirror", false));
    10291029        }
    10301030        else {
    1031             tab_pane.setEnabledAt(mirror_pos, Gatherer.config.get("workflow.mirror", true));
     1031            tab_pane.setEnabledAt(mirror_pos, Configuration.get("workflow.mirror", true));
    10321032        }
    10331033        }
    10341034        if (enrich_pos != -1) {
    1035         tab_pane.setEnabledAt(enrich_pos, ready && Gatherer.config.get("workflow.enrich", false));
     1035        tab_pane.setEnabledAt(enrich_pos, ready && Configuration.get("workflow.enrich", false));
    10361036        }
    10371037        if (design_pos != -1) {
    1038         tab_pane.setEnabledAt(design_pos, ready && Gatherer.config.get("workflow.design", false) && Gatherer.config.getMode() > Configuration.ASSISTANT_MODE);
     1038        tab_pane.setEnabledAt(design_pos, ready && Configuration.get("workflow.design", false) && Configuration.getMode() > Configuration.ASSISTANT_MODE);
    10391039        }
    10401040        if (create_pos != -1) {
    1041         tab_pane.setEnabledAt(create_pos, ready && Gatherer.config.get("workflow.create", false));
     1041        tab_pane.setEnabledAt(create_pos, ready && Configuration.get("workflow.create", false));
    10421042        }
    10431043        if (export_pos != -1) {
    1044         tab_pane.setEnabledAt(export_pos, ready && Gatherer.config.get("workflow.export", false));
     1044        tab_pane.setEnabledAt(export_pos, ready && Configuration.get("workflow.export", false));
    10451045        }
    10461046    }
  • trunk/gli/src/org/greenstone/gatherer/gui/GatherPane.java

    r8041 r8231  
    226226        collection_tree.setModel(collection);
    227227        collection_tree.repaint();
    228         collection_filter.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     228        collection_filter.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    229229    }
    230230    else {
     
    238238    collection_tree.setEnabled(ready);
    239239    collection_filter.setEnabled(ready);
    240     collection_filter.setEditable(Gatherer.config.getMode() > Configuration.LIBRARIAN_MODE);
     240    collection_filter.setEditable(Configuration.getMode() > Configuration.LIBRARIAN_MODE);
    241241    Dictionary.registerTooltip(collection_filter.getComboBox(), "Collection.Filter_Tooltip");
    242242
    243243    // Change the label at the top of collection tree.
    244     setEnabled(collection_label, ready, Gatherer.config.getColor("coloring.collection_heading_foreground", false), Gatherer.config.getColor("coloring.collection_heading_background", false));
     244    setEnabled(collection_label, ready, Configuration.getColor("coloring.collection_heading_foreground", false), Configuration.getColor("coloring.collection_heading_background", false));
    245245    // Ensure that this tree view of the collection record set is synchronized with any others.
    246246    collection_tree_sync.add(collection_tree);
     
    269269    workspace_label = new JLabel();
    270270    workspace_label.setOpaque(true);
    271     workspace_label.setBackground(Gatherer.config.getColor("coloring.workspace_heading_background", false));
    272     workspace_label.setForeground(Gatherer.config.getColor("coloring.workspace_heading_foreground", false));
     271    workspace_label.setBackground(Configuration.getColor("coloring.workspace_heading_background", false));
     272    workspace_label.setForeground(Configuration.getColor("coloring.workspace_heading_foreground", false));
    273273    Dictionary.registerText(workspace_label, "Collection.Workspace");
    274274
     
    282282    workspace_tree.addTreeSelectionListener(file_queue);
    283283    workspace_tree.putClientProperty("JTree.lineStyle", "Angled");
    284     workspace_tree.setBackgroundNonSelectionColor(Gatherer.config.getColor("coloring.workspace_tree_background", false));
    285     workspace_tree.setTextNonSelectionColor(Gatherer.config.getColor("coloring.workspace_tree_foreground", false));
    286     workspace_tree.setBackgroundSelectionColor(Gatherer.config.getColor("coloring.workspace_selection_background", false));
    287     workspace_tree.setTextSelectionColor(Gatherer.config.getColor("coloring.workspace_selection_foreground", false));
     284    workspace_tree.setBackgroundNonSelectionColor(Configuration.getColor("coloring.workspace_tree_background", false));
     285    workspace_tree.setTextNonSelectionColor(Configuration.getColor("coloring.workspace_tree_foreground", false));
     286    workspace_tree.setBackgroundSelectionColor(Configuration.getColor("coloring.workspace_selection_background", false));
     287    workspace_tree.setTextSelectionColor(Configuration.getColor("coloring.workspace_selection_foreground", false));
    288288    workspace_tree.setRootVisible(false);
    289289
     
    291291
    292292    workspace_filter = Gatherer.g_man.getFilter(workspace_tree);
    293     workspace_filter.setBackground(Gatherer.config.getColor("coloring.workspace_heading_background", false));
    294     workspace_filter.setEditable(Gatherer.config.getMode() > Configuration.LIBRARIAN_MODE);
     293    workspace_filter.setBackground(Configuration.getColor("coloring.workspace_heading_background", false));
     294    workspace_filter.setEditable(Configuration.getMode() > Configuration.LIBRARIAN_MODE);
    295295    Dictionary.registerTooltip(workspace_filter.getComboBox(), "Collection.Filter_Tooltip");
    296296
     
    324324    collection_tree.addTreeExpansionListener(Gatherer.g_man.foa_listener);
    325325    collection_tree.putClientProperty("JTree.lineStyle", "Angled");
    326     collection_tree.setBackgroundNonSelectionColor(Gatherer.config.getColor("coloring.collection_tree_background", false));
    327     collection_tree.setTextNonSelectionColor(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    328     collection_tree.setBackgroundSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    329     collection_tree.setTextSelectionColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     326    collection_tree.setBackgroundNonSelectionColor(Configuration.getColor("coloring.collection_tree_background", false));
     327    collection_tree.setTextNonSelectionColor(Configuration.getColor("coloring.collection_tree_foreground", false));
     328    collection_tree.setBackgroundSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     329    collection_tree.setTextSelectionColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    330330    collection_tree.setRootVisible(false);
    331331    //collection_tree.setRootVisible(true);
     
    335335    collection_filter = Gatherer.g_man.getFilter(collection_tree);
    336336    if(collection != null) {
    337         collection_filter.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     337        collection_filter.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    338338    }
    339339    else {
     
    877877        content_pane.add(button_pane, BorderLayout.SOUTH);
    878878        // Display
    879         Dimension screen_size = Gatherer.config.screen_size;
     879        Dimension screen_size = Configuration.screen_size;
    880880        setLocation((screen_size.width - DIALOG_SIZE.width) / 2, (screen_size.height - DIALOG_SIZE.height) / 2);
    881881        show();
  • trunk/gli/src/org/greenstone/gatherer/gui/LockFileDialog.java

    r8015 r8231  
    4141import java.io.*;
    4242import javax.swing.*;
     43import org.greenstone.gatherer.Configuration;
    4344import org.greenstone.gatherer.Dictionary;
    4445import org.greenstone.gatherer.Gatherer;
     
    100101    JTextField name_field = new JTextField(name);
    101102    name_field.setEditable(false);
    102     name_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     103    name_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    103104
    104105    JPanel person_pane = new JPanel();
     
    108109    JTextField person_field = new JTextField(getValue("User"));
    109110    person_field.setEditable(false);
    110     person_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     111    person_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    111112
    112113    JPanel machine_pane = new JPanel();
     
    116117    JTextField machine_field = new JTextField(getValue("Machine"));
    117118    machine_field.setEditable(false);
    118     machine_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     119    machine_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    119120
    120121    JPanel created_pane = new JPanel();
     
    124125    JTextField created_field = new JTextField(getValue("Date"));
    125126    created_field.setEditable(false);
    126     created_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     127    created_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    127128
    128129    JLabel central_label = new JLabel();
  • trunk/gli/src/org/greenstone/gatherer/gui/MenuBar.java

    r8039 r8231  
    4141import javax.swing.*;
    4242import javax.swing.event.*;
     43import org.greenstone.gatherer.Configuration;
    4344import org.greenstone.gatherer.Dictionary;
    4445import org.greenstone.gatherer.Gatherer;
     
    255256    help.add(help_general);
    256257    help.add(new JSeparator());
    257     if (Gatherer.config.get("workflow.browse", true)) {
     258    if (Configuration.get("workflow.browse", true)) {
    258259        help.add(help_browse);
    259260    }
    260     if (Gatherer.config.get("workflow.mirror", true)) {
     261    if (Configuration.get("workflow.mirror", true)) {
    261262        help.add(help_mirror);
    262263    }
    263     if (Gatherer.config.get("workflow.gather", true)) {
     264    if (Configuration.get("workflow.gather", true)) {
    264265        help.add(help_collect);
    265266    }
    266     if (Gatherer.config.get("workflow.enrich", true)) {
     267    if (Configuration.get("workflow.enrich", true)) {
    267268        help.add(help_metaedit);
    268269    }
    269     if (Gatherer.config.get("workflow.design", true)) {
     270    if (Configuration.get("workflow.design", true)) {
    270271        help.add(help_design);
    271272    }
    272     if (Gatherer.config.get("workflow.export", true)) {
     273    if (Configuration.get("workflow.export", true)) {
    273274        help.add(help_export);
    274275    }
    275     if (Gatherer.config.get("workflow.create", true)) {
     276    if (Configuration.get("workflow.create", true)) {
    276277        help.add(help_build);
    277278    }
    278     if (Gatherer.config.get("workflow.preview", true)) {
     279    if (Configuration.get("workflow.preview", true)) {
    279280        help.add(help_preview);
    280281    }
  • trunk/gli/src/org/greenstone/gatherer/gui/MetaEditPrompt.java

    r7155 r8231  
    3131import java.io.File;
    3232import javax.swing.*;
     33import org.greenstone.gatherer.Configuration;
    3334import org.greenstone.gatherer.Dictionary;
    3435import org.greenstone.gatherer.Gatherer;
     
    105106    JTextField filename_field = new JTextField(Utility.trimCenter(file.getAbsolutePath(), 120));
    106107    filename_field.setEditable(false);
    107     filename_field.setFont(Gatherer.config.getFont("general.tooltip_font", false));
    108     filename_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     108    filename_field.setFont(Configuration.getFont("general.tooltip_font", false));
     109    filename_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    109110   
    110111    JLabel element_label = new JLabel();
     
    112113    JTextField element_field = new JTextField(element);
    113114    element_field.setEditable(false);
    114     element_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     115    element_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    115116
    116117    JLabel current_value_label = new JLabel();
     
    118119    JTextField current_value_field = new JTextField(current_value);
    119120    current_value_field.setEditable(false);
    120     current_value_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     121    current_value_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    121122
    122123    JLabel new_value_label = new JLabel();
     
    124125    JTextField new_value_field = new JTextField(new_value); // , (type == ADD_PROMPT || type == UPDATE_PROMPT));
    125126    new_value_field.setEditable(false);
    126     new_value_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     127    new_value_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    127128
    128129    JPanel buttons_pane = new JPanel();
  • trunk/gli/src/org/greenstone/gatherer/gui/MetadataElementListCellRenderer.java

    r8132 r8231  
    44import java.awt.*;
    55import javax.swing.*;
     6import org.greenstone.gatherer.Configuration;
    67import org.greenstone.gatherer.Gatherer;
    78import org.greenstone.gatherer.metadata.MetadataElement;
     
    3233        MetadataElement metadata_element = (MetadataElement) value;
    3334
    34         String interface_language_code = Gatherer.config.getLanguage();
     35        String interface_language_code = Configuration.getLanguage();
    3536        String metadata_element_display = "";
    3637
  • trunk/gli/src/org/greenstone/gatherer/gui/MetadataImportMappingPrompt.java

    r8216 r8231  
    66import java.util.*;
    77import javax.swing.*;
     8import org.greenstone.gatherer.Configuration;
    89import org.greenstone.gatherer.Dictionary;
    910import org.greenstone.gatherer.Gatherer;
     
    106107
    107108    // Display
    108     Dimension screen_size = Gatherer.config.screen_size;
     109    Dimension screen_size = Configuration.screen_size;
    109110    dialog.setLocation((screen_size.width - DIALOG_SIZE.width) / 2, (screen_size.height - DIALOG_SIZE.height) / 2);
    110111    on_screen = dialog;
     
    161162    {
    162163        MetadataSet metadata_set = (MetadataSet) value;
    163         String interface_language_code = Gatherer.config.getLanguage();
     164        String interface_language_code = Configuration.getLanguage();
    164165        String metadata_set_name = MetadataTools.getMetadataSetAttribute(metadata_set, "Name", interface_language_code, "en");
    165166        setText(metadata_set_name);
  • trunk/gli/src/org/greenstone/gatherer/gui/MetadataValueTableCellRenderer.java

    r8132 r8231  
    66import javax.swing.*;
    77import javax.swing.table.DefaultTableCellRenderer;
     8import org.greenstone.gatherer.Configuration;
    89import org.greenstone.gatherer.Gatherer;
    910import org.greenstone.gatherer.metadata.MetadataElement;
     
    6061    // Background
    6162    if (isSelected) {
    62         renderer.setBackground(Gatherer.config.getColor("coloring.workspace_heading_background", true));
     63        renderer.setBackground(Configuration.getColor("coloring.workspace_heading_background", true));
    6364    }
    6465    else {
    6566        if (column <= 1) {
    66         renderer.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", true));
     67        renderer.setBackground(Configuration.getColor("coloring.collection_heading_background", true));
    6768        }
    6869        else {
    69         renderer.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", true));
     70        renderer.setBackground(Configuration.getColor("coloring.collection_tree_background", true));
    7071        }
    7172    }
     
    7879    // We set a tooltip over the element column containing the definition of the element
    7980    if (value instanceof MetadataElement) {
    80         String interface_language_code = Gatherer.config.getLanguage();
     81        String interface_language_code = Configuration.getLanguage();
    8182        String metadata_element_definition = MetadataTools.getMetadataElementAttribute((MetadataElement) value, "definition", interface_language_code, "en");
    8283        if (metadata_element_definition != null) {
  • trunk/gli/src/org/greenstone/gatherer/gui/MirrorPane.java

    r7740 r8231  
    9090    list_scroll = getter.getDownloadJobList();
    9191
    92     current_mode = Gatherer.config.getMode();
     92    current_mode = Configuration.getMode();
    9393    // String user_dir = System.getProperty("user.dir"); // ****
    9494    // System.err.println("**** user dir = "+user_dir);
     
    210210    }
    211211    // Lets see what warning message we should display, if any.
    212     String wget_version_str = Gatherer.config.getWGetVersion();
     212    String wget_version_str = Configuration.getWGetVersion();
    213213    if(wget_version_str.equals(StaticStrings.NO_WGET_STR)) {
    214214        // If there was no WGet available then downloading is disabled entirely
  • trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionDetailsPrompt.java

    r7740 r8231  
    3434import javax.swing.event.*;
    3535import javax.swing.text.*;
     36import org.greenstone.gatherer.Configuration;
    3637import org.greenstone.gatherer.Dictionary;
    3738import org.greenstone.gatherer.Gatherer;
     
    5354    File collection_directory;
    5455    if (Gatherer.GS3) {
    55         collection_directory = new File(Utility.getCollectDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name));
     56        collection_directory = new File(Utility.getCollectDir(Configuration.gsdl3_path, Configuration.site_name));
    5657    } else {
    57         collection_directory = new File(Utility.getCollectDir(Gatherer.config.gsdl_path));
     58        collection_directory = new File(Utility.getCollectDir(Configuration.gsdl_path));
    5859    }
    5960    File children[] = collection_directory.listFiles();
     
    104105    // need to modify this to base a coll on any collection from any site
    105106    if (Gatherer.GS3) {
    106         File sites_dir = new File(Utility.getSitesDir(Gatherer.config.gsdl3_path));
     107        File sites_dir = new File(Utility.getSitesDir(Configuration.gsdl3_path));
    107108        File [] sites = sites_dir.listFiles();
    108109        for (int i=0; i<sites.length; i++) {
    109         File collect_dir = new File(Utility.getCollectDir(Gatherer.config.gsdl3_path, sites[i].getName()));
     110        File collect_dir = new File(Utility.getCollectDir(Configuration.gsdl3_path, sites[i].getName()));
    110111        if (collect_dir.exists()) {
    111112            addCollectionsToModel(base_collection_model, collect_dir, sites[i].getName());
     
    113114        }
    114115    } else {
    115        File gsdl_collection_directory = new File(Utility.getCollectDir(Gatherer.config.gsdl_path));
     116       File gsdl_collection_directory = new File(Utility.getCollectDir(Configuration.gsdl_path));
    116117       addCollectionsToModel(base_collection_model, gsdl_collection_directory, null);
    117118    }
     
    142143    Dictionary.setText(description_label, "NewCollectionPrompt.Collection_Description");
    143144    description = new JTextArea();
    144     description.setBackground(Gatherer.config.getColor("coloring.editable_background", false));
    145     description.setForeground(Gatherer.config.getColor("coloring.editable_foreground", false));
     145    description.setBackground(Configuration.getColor("coloring.editable_background", false));
     146    description.setForeground(Configuration.getColor("coloring.editable_foreground", false));
    146147    description.setRows(5);
    147148    Dictionary.setTooltip(description, "CDM.General.Collection_Extra_Tooltip");
     
    205206    content_pane.add(bottom_pane, BorderLayout.SOUTH);
    206207    // Final dialog setup & positioning.
    207     Dimension screen_size = Gatherer.config.screen_size;
     208    Dimension screen_size = Configuration.screen_size;
    208209    setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2);
    209210    setVisible(true);
     
    271272    File collection_directory;
    272273    if (Gatherer.GS3) {
    273         collection_directory = new File(Utility.getCollectDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name));
     274        collection_directory = new File(Utility.getCollectDir(Configuration.gsdl3_path, Configuration.site_name));
    274275    } else {
    275         collection_directory = new File(Utility.getCollectDir(Gatherer.config.gsdl_path));
     276        collection_directory = new File(Utility.getCollectDir(Configuration.gsdl_path));
    276277    }
    277278
     
    334335    }
    335336    public void keyPressed(KeyEvent event) {
    336         component1.setForeground(Gatherer.config.getColor("coloring.editable_foreground", false));
    337         component1.setBackground(Gatherer.config.getColor("coloring.editable_background", false));
     337        component1.setForeground(Configuration.getColor("coloring.editable_foreground", false));
     338        component1.setBackground(Configuration.getColor("coloring.editable_background", false));
    338339        if(component2 != null) {
    339         component2.setForeground(Gatherer.config.getColor("coloring.editable_foreground", false));
    340         component2.setBackground(Gatherer.config.getColor("coloring.editable_background", false));
     340        component2.setForeground(Configuration.getColor("coloring.editable_foreground", false));
     341        component2.setBackground(Configuration.getColor("coloring.editable_background", false));
    341342        }
    342343    }
  • trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionMetadataPrompt.java

    r6318 r8231  
    3333import javax.swing.*;
    3434import javax.swing.event.*;
     35import org.greenstone.gatherer.Configuration;
    3536import org.greenstone.gatherer.Dictionary;
    3637import org.greenstone.gatherer.Gatherer;
     
    105106    Dictionary.setText(elements_list_label, "NewCollectionPrompt.Metadata_Elements");
    106107    elements_list = new JList();
    107     elements_list.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    108     elements_list.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    109     elements_list.setSelectionBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    110     elements_list.setSelectionForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
     108    elements_list.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     109    elements_list.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     110    elements_list.setSelectionBackground(Configuration.getColor("coloring.collection_tree_background", false));
     111    elements_list.setSelectionForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
    111112
    112113    JPanel button_pane = new JPanel();
     
    153154
    154155    // Show
    155     Dimension screen_size = Gatherer.config.screen_size;
     156    Dimension screen_size = Configuration.screen_size;
    156157    setLocation((screen_size.width - size.width) / 2, (screen_size.height - size.height) / 2);
    157158    setVisible(true);
  • trunk/gli/src/org/greenstone/gatherer/gui/NewFolderPrompt.java

    r7151 r8231  
    4141import java.io.*;
    4242import javax.swing.*;
     43import org.greenstone.gatherer.Configuration;
    4344import org.greenstone.gatherer.Dictionary;
    4445import org.greenstone.gatherer.Gatherer;
     
    8283    Dictionary.setText(destination_label, "NewFolderPrompt.Destination_Name");
    8384    JTextField destination_textfield = new JTextField(node.getFile().getName());
    84     destination_textfield.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     85    destination_textfield.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    8586    destination_textfield.setEditable(false);
    8687   
  • trunk/gli/src/org/greenstone/gatherer/gui/NewMetaSetPrompt.java

    r7998 r8231  
    4343import javax.swing.event.*;
    4444import javax.swing.text.*;
     45import org.greenstone.gatherer.Configuration;
    4546import org.greenstone.gatherer.Dictionary;
    4647import org.greenstone.gatherer.Gatherer;
     
    7071    // Creation
    7172    JPanel content_pane = (JPanel) getContentPane();
    72     content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     73    content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    7374    JPanel center_pane = new JPanel();
    7475    center_pane.setOpaque(false);
     
    8182    Dictionary.setText(name_label, "MEM.Name");
    8283    name_field = new JTextField();
    83     name_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    84     name_field.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    85     name_field.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    86     name_field.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     84    name_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     85    name_field.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     86    name_field.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     87    name_field.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    8788    Dictionary.setTooltip(name_field, "MEM.Set_Name_Tooltip");
    8889   
     
    9495    Dictionary.setText(namespace_label, "MEM.Namespace");
    9596    namespace_field = new JTextField();
    96     namespace_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    97     namespace_field.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    98     namespace_field.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    99     namespace_field.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     97    namespace_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     98    namespace_field.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     99    namespace_field.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     100    namespace_field.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    100101    Dictionary.setTooltip(namespace_field, "MEM.Set_Namespace_Tooltip");
    101102
     
    143144    content_pane.add(button_pane, BorderLayout.SOUTH);
    144145   
    145     setLocation((Gatherer.config.screen_size.width - ADD_SET_SIZE.width) / 2, (Gatherer.config.screen_size.height - ADD_SET_SIZE.height) / 2);
     146    setLocation((Configuration.screen_size.width - ADD_SET_SIZE.width) / 2, (Configuration.screen_size.height - ADD_SET_SIZE.height) / 2);
    146147    setVisible(true);
    147148    }
  • trunk/gli/src/org/greenstone/gatherer/gui/OptionsPane.java

    r8018 r8231  
    124124    }
    125125    ArrayList build_arguments = new ArrayList();
    126     int current_mode = Gatherer.config.getMode();
     126    int current_mode = Configuration.getMode();
    127127    int total_build_argument_count = build_options.getBuildArgumentCount();       
    128128    for(int i = 0; i < total_build_argument_count; i++) {
     
    142142        pane = new JPanel();
    143143        pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    144         pane.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     144        pane.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    145145        int argument_count = build_arguments.size();
    146146        // If in any of the higher detail modes, and assuming we don't want super phat argument controls, we better ensure there is a minimum number or lines in the grid layout
     
    184184    }
    185185    ArrayList import_arguments = new ArrayList();
    186     int current_mode = Gatherer.config.getMode();
     186    int current_mode = Configuration.getMode();
    187187    int total_import_argument_count = build_options.getImportArgumentCount();       
    188188    for(int i = 0; i < total_import_argument_count; i++) {
     
    202202        pane = new JPanel();
    203203        pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
    204         pane.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     204        pane.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    205205        int argument_count = import_arguments.size();
    206206        // If in any of the higher detail modes, and assuming we don't want super phat argument controls, we better ensure there is a minimum number or lines in the grid layout
     
    392392        String tooltip = Utility.formatHTMLWidth("<html>" + argument.getDescription() + "</html>", 60);
    393393        // Because of the dynamic order of component creation/connection/layout, we can't really follow that pattern here.
    394         setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     394        setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    395395        setBorder(BorderFactory.createEmptyBorder(2,0,2,0));
    396396        setLayout(new BorderLayout());
  • trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java

    r8212 r8231  
    190190    program_label.setPreferredSize(LABEL_SIZE);
    191191    Dictionary.registerText(program_label, "Preferences.Connection.ProgramCommand");
    192     program_field = new JTextField(Gatherer.config.getPreviewCommand());
     192    program_field = new JTextField(Configuration.getPreviewCommand());
    193193    program_field.setCaretPosition(0);
    194194    Dictionary.registerTooltip(program_field, "Preferences.Connection.ProgramCommand_Tooltip");
     
    198198    library_path_label = new JLabel();
    199199    library_path_label.setPreferredSize(LABEL_SIZE);
    200     library_path_field = new JTextField(Gatherer.config.getString("general.exec_address", true));
     200    library_path_field = new JTextField(Configuration.getString("general.exec_address", true));
    201201    library_path_field.setCaretPosition(0);
    202202    if (Gatherer.GS3) {
     
    228228        servlet_combobox = new JComboBox();
    229229        // try to locate and select the current site
    230         String this_site = Gatherer.config.site_name;
     230        String this_site = Configuration.site_name;
    231231        for(int b = 0; b < site_combobox.getItemCount(); b++) {
    232232        String entry = (String) site_combobox.getItemAt(b);
     
    252252        servlet_combobox.setEnabled(true);
    253253        // try to locate and select the current servlet
    254         String this_servlet = Gatherer.config.getServletPath();
     254        String this_servlet = Configuration.getServletPath();
    255255        for(int b = 0; b < servlet_combobox.getItemCount(); b++) {
    256256            String entry = (String) servlet_combobox.getItemAt(b);
     
    264264    }
    265265   
    266     boolean currently_enabled = Gatherer.config.get("general.use_proxy", true);
     266    boolean currently_enabled = Configuration.get("general.use_proxy", true);
    267267    // Creation
    268268    JPanel connection_pane = new JPanel();
     
    277277    proxy_host_label.setPreferredSize(LABEL_SIZE);
    278278    Dictionary.registerText(proxy_host_label, "Preferences.Connection.Proxy_Host");
    279     proxy_host_field = new JTextField(Gatherer.config.getString("general.proxy_host", true));
     279    proxy_host_field = new JTextField(Configuration.getString("general.proxy_host", true));
    280280    proxy_host_field.setEnabled(currently_enabled);
    281281    Dictionary.registerTooltip(proxy_host_field, "Preferences.Connection.Proxy_Host_Tooltip");
     
    285285    proxy_port_label.setPreferredSize(LABEL_SIZE);
    286286    Dictionary.registerText(proxy_port_label, "Preferences.Connection.Proxy_Port");
    287     String port_value = Gatherer.config.getString("general.proxy_port", true);
     287    String port_value = Configuration.getString("general.proxy_port", true);
    288288    if(port_value.length() > 0) {
    289289       proxy_port_field = new JSpinner(new SpinnerNumberModel((new Integer(port_value)).intValue(), 0, 65535, 1));
     
    414414    email_label.setPreferredSize(LABEL_SIZE);
    415415    Dictionary.registerText(email_label, "Preferences.General.Email");
    416     email_field = new EmailField(Gatherer.config.getColor("coloring.error_background", false));
    417     email_field.setText(Gatherer.config.getEmail());
     416    email_field = new EmailField(Configuration.getColor("coloring.error_background", false));
     417    email_field.setText(Configuration.getEmail());
    418418    Dictionary.registerTooltip(email_field, "Preferences.General.Email_Tooltip");
    419419
     
    421421    view_extracted_metadata_checkbox = new JCheckBox();
    422422    view_extracted_metadata_checkbox.setSelected(false);
    423     if (Gatherer.config.get("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC)) {
     423    if (Configuration.get("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC)) {
    424424        view_extracted_metadata_checkbox.setSelected(true);
    425425    }
     
    429429    show_file_size_checkbox = new JCheckBox();
    430430    show_file_size_checkbox.setSelected(false);
    431     if (Gatherer.config.get("general.show_file_size", Configuration.COLLECTION_SPECIFIC)) {
     431    if (Configuration.get("general.show_file_size", Configuration.COLLECTION_SPECIFIC)) {
    432432        show_file_size_checkbox.setSelected(true);
    433433    }
     
    442442    Dictionary.registerTooltip(language_combobox, "Preferences.General.Interface_Language_Tooltip");
    443443    // Try to locate and select the current language
    444     String language_code = Gatherer.config.getLanguage();
     444    String language_code = Configuration.getLanguage();
    445445    for(int b = 0; b < language_combobox.getItemCount(); b++) {
    446446        DictionaryEntry entry = (DictionaryEntry) language_combobox.getItemAt(b);
     
    497497    mode_description_textarea.setWrapStyleWord(true);
    498498    // Determine which value is already selected
    499     switch(Gatherer.config.getMode()) {
     499    switch(Configuration.getMode()) {
    500500    case Configuration.ASSISTANT_MODE:
    501501        assistant_mode_radio_button.setSelected(true);
     
    540540    private JPanel createWarningPreferences() {
    541541    // Retrieve all of the warning preferences settings.
    542     HashMap warning_preferences = Gatherer.config.getAll("warning\\..*", true);
     542    HashMap warning_preferences = Configuration.getAll("warning\\..*", true);
    543543    warning_preferences_check_list = new CheckList(false);
    544544    for(Iterator keys = warning_preferences.keySet().iterator(); keys.hasNext(); ) {
     
    580580
    581581    workflow_mirror = new JCheckBox();
    582     workflow_mirror.setSelected(Gatherer.config.get("workflow.mirror", false));
     582    workflow_mirror.setSelected(Configuration.get("workflow.mirror", false));
    583583    workflow_mirror.setPreferredSize(ROW_SIZE);
    584584    Dictionary.registerText(workflow_mirror, "Preferences.Workflow.Mirror");
    585585
    586586    workflow_gather = new JCheckBox();
    587     workflow_gather.setSelected(Gatherer.config.get("workflow.gather", false));
     587    workflow_gather.setSelected(Configuration.get("workflow.gather", false));
    588588    workflow_gather.setPreferredSize(ROW_SIZE);
    589589    Dictionary.registerText(workflow_gather, "Preferences.Workflow.Gather");
    590590
    591591    workflow_enrich = new JCheckBox();
    592     workflow_enrich.setSelected(Gatherer.config.get("workflow.enrich", false));
     592    workflow_enrich.setSelected(Configuration.get("workflow.enrich", false));
    593593    workflow_enrich.setPreferredSize(ROW_SIZE);
    594594    Dictionary.registerText(workflow_enrich, "Preferences.Workflow.Enrich");
    595595
    596596    workflow_design = new JCheckBox();
    597     workflow_design.setSelected(Gatherer.config.get("workflow.design", false));
     597    workflow_design.setSelected(Configuration.get("workflow.design", false));
    598598    workflow_design.setPreferredSize(ROW_SIZE);
    599599    Dictionary.registerText(workflow_design, "Preferences.Workflow.Design");
    600600
    601601    workflow_export = new JCheckBox();
    602     workflow_export.setSelected(Gatherer.config.get("workflow.export", false));
     602    workflow_export.setSelected(Configuration.get("workflow.export", false));
    603603    workflow_export.setPreferredSize(ROW_SIZE);
    604604    Dictionary.registerText(workflow_export, "Preferences.Workflow.Export");
    605605
    606606    workflow_create = new JCheckBox();
    607     workflow_create.setSelected(Gatherer.config.get("workflow.create", false));
     607    workflow_create.setSelected(Configuration.get("workflow.create", false));
    608608    workflow_create.setPreferredSize(ROW_SIZE);
    609609    Dictionary.registerText(workflow_create, "Preferences.Workflow.Create");
     
    620620    checklist_pane.setLayout(new BoxLayout(checklist_pane, BoxLayout.Y_AXIS));
    621621    checklist_pane.add(title_label);
    622     if (Gatherer.config.get("workflow.mirror", true)) {
     622    if (Configuration.get("workflow.mirror", true)) {
    623623        checklist_pane.add(workflow_mirror);
    624624    }
    625     if (Gatherer.config.get("workflow.gather", true)) {
     625    if (Configuration.get("workflow.gather", true)) {
    626626        checklist_pane.add(workflow_gather);
    627627    }
    628     if (Gatherer.config.get("workflow.enrich", true)) {
     628    if (Configuration.get("workflow.enrich", true)) {
    629629        checklist_pane.add(workflow_enrich);
    630630    }
    631     if (Gatherer.config.get("workflow.design", true)) {
     631    if (Configuration.get("workflow.design", true)) {
    632632        checklist_pane.add(workflow_design);
    633633    }
    634     if (Gatherer.config.get("workflow.export", true)) {
     634    if (Configuration.get("workflow.export", true)) {
    635635        checklist_pane.add(workflow_export);
    636636    }
    637     if (Gatherer.config.get("workflow.create", true)) {
     637    if (Configuration.get("workflow.create", true)) {
    638638        checklist_pane.add(workflow_create);
    639639    }
     
    665665        program_str = program_str + " %1";
    666666        }
    667         Gatherer.config.setPreviewCommand(program_str);
     667        Configuration.setPreviewCommand(program_str);
    668668
    669669        String library_path_string = library_path_field.getText();
    670         Gatherer.config.setString("general.exec_address", true, library_path_string);
     670        Configuration.setString("general.exec_address", true, library_path_string);
    671671        if (!library_path_string.equals("")) {
    672672        try {
    673             Gatherer.config.exec_address = new URL(library_path_string);
     673            Configuration.exec_address = new URL(library_path_string);
    674674        }
    675675        catch (MalformedURLException error) {
     
    679679        boolean site_changed = false;
    680680        if (Gatherer.GS3) {
    681         String current_site = Gatherer.config.site_name;
     681        String current_site = Configuration.site_name;
    682682        String new_site =(String)site_combobox.getSelectedItem() ;
    683683        if (!new_site.equals(current_site)) {
    684684            site_changed = true;
    685685        }
    686         Gatherer.config.setSiteAndServlet(new_site, (String)servlet_combobox.getSelectedItem());
     686        Configuration.setSiteAndServlet(new_site, (String)servlet_combobox.getSelectedItem());
    687687        }
    688688       
    689         Gatherer.config.set("general.use_proxy", true, use_proxy_checkbox.isSelected());
    690         Gatherer.config.setString("general.proxy_host", true, proxy_host_field.getText());
    691         Gatherer.config.setString("general.proxy_port", true, proxy_port_field.getValue() + "");
     689        Configuration.set("general.use_proxy", true, use_proxy_checkbox.isSelected());
     690        Configuration.setString("general.proxy_host", true, proxy_host_field.getText());
     691        Configuration.setString("general.proxy_port", true, proxy_port_field.getValue() + "");
    692692        Gatherer.setProxy();
    693693
    694694        // General preferences
    695         Gatherer.config.setEmail(email_field.getText());
    696 
    697         Gatherer.config.set("general.show_file_size", Configuration.COLLECTION_SPECIFIC, show_file_size_checkbox.isSelected());
     695        Configuration.setEmail(email_field.getText());
     696
     697        Configuration.set("general.show_file_size", Configuration.COLLECTION_SPECIFIC, show_file_size_checkbox.isSelected());
    698698        // Force both workspace and collection trees to redraw
    699699        if (Gatherer.g_man != null) {
     
    702702        }
    703703
    704         Gatherer.config.set("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC, view_extracted_metadata_checkbox.isSelected());
     704        Configuration.set("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC, view_extracted_metadata_checkbox.isSelected());
    705705        Gatherer.g_man.enrich_pane.valueChanged((TreeSelectionEvent) null); // Refresh metadata table
    706706
    707         String current_lang = Gatherer.config.getLanguage();
     707        String current_lang = Configuration.getLanguage();
    708708        String new_lang = ((DictionaryEntry)language_combobox.getSelectedItem()).getLocale().getLanguage();
    709709        if (!current_lang.equals(new_lang)) {
    710         Gatherer.config.setLocale("general.locale", Configuration.GENERAL_SETTING, ((DictionaryEntry)language_combobox.getSelectedItem()).getLocale());
     710        Configuration.setLocale("general.locale", Configuration.GENERAL_SETTING, ((DictionaryEntry)language_combobox.getSelectedItem()).getLocale());
    711711        // delete the plugins and classifiers.dat files
    712712        PlugInManager.clearPlugInCache();
     
    715715
    716716        // Mode preferences
    717         int current_mode = Gatherer.config.getMode();
     717        int current_mode = Configuration.getMode();
    718718        int new_mode;
    719719        if(assistant_mode_radio_button.isSelected()) {
     
    731731        // If there has been a change in modes, update the config, and also inform the persistant gui views that have a need to know
    732732        if(new_mode != current_mode) {
    733         Gatherer.config.setMode(new_mode);
     733        Configuration.setMode(new_mode);
    734734        Collection collection = Gatherer.c_man.getCollection();
    735735        if (collection != null) {
     
    741741        for(int i = 0; i < warning_preferences_check_list.getEntryCount(); i++) {
    742742        Entry entry = warning_preferences_check_list.get(i);
    743         Gatherer.config.set(entry.getProperty(), true, entry.isSelected());
     743        Configuration.set(entry.getProperty(), true, entry.isSelected());
    744744        }
    745745
     
    751751
    752752        // Workflow preferences
    753         // Gatherer.config.set("workflow.mirror", false, workflow_mirror.isSelected());
    754         // Gatherer.config.set("workflow.gather", false, workflow_gather.isSelected());
    755         // Gatherer.config.set("workflow.enrich", false, workflow_enrich.isSelected());
    756         // Gatherer.config.set("workflow.design", false, workflow_design.isSelected());
    757         // Gatherer.config.set("workflow.export", false, workflow_export.isSelected());
    758         // Gatherer.config.set("workflow.create", false, workflow_create.isSelected());
     753        // Configuration.set("workflow.mirror", false, workflow_mirror.isSelected());
     754        // Configuration.set("workflow.gather", false, workflow_gather.isSelected());
     755        // Configuration.set("workflow.enrich", false, workflow_enrich.isSelected());
     756        // Configuration.set("workflow.design", false, workflow_design.isSelected());
     757        // Configuration.set("workflow.export", false, workflow_export.isSelected());
     758        // Configuration.set("workflow.create", false, workflow_create.isSelected());
    759759        // Gatherer.g_man.workflowUpdate("Mirror", workflow_mirror.isSelected());
    760760        // Gatherer.g_man.workflowUpdate("Gather", workflow_gather.isSelected());
    761761        // Gatherer.g_man.workflowUpdate("Enrich", workflow_enrich.isSelected());
    762         // Gatherer.g_man.workflowUpdate("Design", (workflow_design.isSelected() && Gatherer.config.getMode() > Configuration.ASSISTANT_MODE));
     762        // Gatherer.g_man.workflowUpdate("Design", (workflow_design.isSelected() && Configuration.getMode() > Configuration.ASSISTANT_MODE));
    763763        // Gatherer.g_man.workflowUpdate("Export", workflow_export.isSelected());
    764764        // Gatherer.g_man.workflowUpdate("Create", workflow_create.isSelected());
    765765
    766766        // Always save configuration changes immediately (in case the GLI crashes)
    767         Gatherer.config.save();
     767        Configuration.save();
    768768
    769769        // Hide dialog
     
    903903    public void actionPerformed(ActionEvent event) {
    904904        boolean enabled = use_proxy_checkbox.isSelected();
    905         Gatherer.config.set("general.use_proxy", true, enabled);
     905        Configuration.set("general.use_proxy", true, enabled);
    906906        // Fortunately this is already driven by the event thread.
    907907        proxy_host_field.setEnabled(enabled);
  • trunk/gli/src/org/greenstone/gatherer/gui/PreviewCommandDialog.java

    r7540 r8231  
    4545import javax.swing.filechooser.*;
    4646import javax.swing.table.*;
     47import org.greenstone.gatherer.Configuration;
    4748import org.greenstone.gatherer.Dictionary;
    4849import org.greenstone.gatherer.Gatherer;
     
    8182
    8283    JPanel content_pane = (JPanel) getContentPane();
    83     content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     84    content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    8485
    8586    JTextArea instructions_area = new JTextArea();
  • trunk/gli/src/org/greenstone/gatherer/gui/SimpleOpenCollectionDialog.java

    r8213 r8231  
    3333import javax.swing.*;
    3434import javax.swing.event.*;
     35import org.greenstone.gatherer.Configuration;
    3536import org.greenstone.gatherer.Dictionary;
    3637import org.greenstone.gatherer.Gatherer;
     
    138139    content_pane.add(button_pane, BorderLayout.SOUTH);
    139140
    140     Dimension screen_size = Gatherer.config.screen_size;
     141    Dimension screen_size = Configuration.screen_size;
    141142    setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2);
    142143    screen_size = null;
     
    210211    public GS3CollectionListModel() {
    211212        data = new TreeSet();
    212         File sites_folder = new File(Utility.getSitesDir(Gatherer.config.gsdl3_path));
     213        File sites_folder = new File(Utility.getSitesDir(Configuration.gsdl3_path));
    213214        File sites[] = sites_folder.listFiles();
    214215        for (int s=0; s<sites.length; s++) {
    215216        String site_name = sites[s].getName();
    216217        System.err.println("found site "+site_name);
    217         File collect_folder = new File(Utility.getCollectDir(Gatherer.config.gsdl3_path, site_name) );
     218        File collect_folder = new File(Utility.getCollectDir(Configuration.gsdl3_path, site_name) );
    218219        if (!collect_folder.exists()) {
    219220            continue;
     
    267268        File collect_folder;
    268269        if (Gatherer.GS3) {
    269         collect_folder = new File(Utility.getCollectDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name) );
     270        collect_folder = new File(Utility.getCollectDir(Configuration.gsdl3_path, Configuration.site_name) );
    270271        } else {
    271         collect_folder = new File(Utility.getCollectDir(Gatherer.config.gsdl_path));
     272        collect_folder = new File(Utility.getCollectDir(Configuration.gsdl_path));
    272273        }
    273274        if (!collect_folder.exists()) {
  • trunk/gli/src/org/greenstone/gatherer/gui/WarningDialog.java

    r7558 r8231  
    184184    boolean bad_value = false;
    185185    if(event.getSource() == ok_button) {
    186         if(affected_property != null && Gatherer.config != null) {
     186        if(affected_property != null && Configuration.self != null) {
    187187        String value = value_field.getText();
    188188        if(value.length() > 0) {
     
    192192           if(!bad_value) {
    193193              // Store the value of the property
    194               Gatherer.config.setString(affected_property, true, value_field.getText());
     194              Configuration.setString(affected_property, true, value_field.getText());
    195195           }
    196196        }
     
    201201    }
    202202    if(!bad_value) {
    203         if(Gatherer.config != null) {
     203        if (Configuration.self != null) {
    204204        // Store the state of the show message checkbox.
    205         Gatherer.config.set(full_property, true, !show_check.isSelected());
     205        Configuration.set(full_property, true, !show_check.isSelected());
    206206        }
    207207        // Done.
     
    230230
    231231    public int display() {
    232     if(Gatherer.config == null || Gatherer.config.get(full_property, false)) {
     232    if (Configuration.self == null || Configuration.get(full_property, false)) {
    233233        setVisible(true);
    234234    }
  • trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/AutofilterDialog.java

    r7517 r8231  
    4141import java.util.*;
    4242import javax.swing.*;
     43import org.greenstone.gatherer.Configuration;
    4344import org.greenstone.gatherer.Dictionary;
    4445import org.greenstone.gatherer.Gatherer;
     
    274275    content_pane.add(lower_pane, BorderLayout.SOUTH);
    275276
    276     Dimension screen_size = Gatherer.config.screen_size;
     277    Dimension screen_size = Configuration.screen_size;
    277278    setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2);
    278279    screen_size = null;
  • trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/MetaAuditFrame.java

    r6318 r8231  
    4242import javax.swing.event.*;
    4343import javax.swing.tree.*;
     44import org.greenstone.gatherer.Configuration;
    4445import org.greenstone.gatherer.Dictionary;
    4546import org.greenstone.gatherer.Gatherer;
     
    133134    content_pane.add(button_pane, BorderLayout.SOUTH);
    134135         
    135     Dimension screen_size = Gatherer.config.screen_size;
     136    Dimension screen_size = Configuration.screen_size;
    136137    setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2);
    137138    screen_size = null;
  • trunk/gli/src/org/greenstone/gatherer/gui/table/GTableModel.java

    r7691 r8231  
    367367            if (!element.toString().startsWith("hidden.")) {
    368368            // Only process extracted metadata if the user has specified to
    369             if(!element.getNamespace().equals(Utility.EXTRACTED_METADATA_NAMESPACE) || Gatherer.config.get("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC)) {
     369            if(!element.getNamespace().equals(Utility.EXTRACTED_METADATA_NAMESPACE) || Configuration.get("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC)) {
    370370                // If a piece of metadata is at folder level, display the warning
    371371                if (!metadatum.isFileLevel()) {
  • trunk/gli/src/org/greenstone/gatherer/gui/table/TableCellRenderer.java

    r5782 r8231  
    4141import javax.swing.*;
    4242import javax.swing.table.DefaultTableCellRenderer;
     43import org.greenstone.gatherer.Configuration;
    4344import org.greenstone.gatherer.Gatherer;
    44 import org.greenstone.gatherer.gui.table.GTableModel;
    4545import org.greenstone.gatherer.msm.ElementWrapper;
    4646import org.greenstone.gatherer.msm.Metadata;
     
    8888    if(column <= 1) {
    8989        if(isSelected) {
    90         renderer.setBackground(Gatherer.config.getColor("coloring.workspace_heading_background", true));
     90        renderer.setBackground(Configuration.getColor("coloring.workspace_heading_background", true));
    9191        }
    9292        else {
    93         renderer.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", true));
     93        renderer.setBackground(Configuration.getColor("coloring.collection_heading_background", true));
    9494        }
    9595    }
    9696    else {
    9797        if(isSelected) {
    98         renderer.setBackground(Gatherer.config.getColor("coloring.workspace_heading_background", true));
     98        renderer.setBackground(Configuration.getColor("coloring.workspace_heading_background", true));
    9999        }
    100100        else {
    101         renderer.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", true));
     101        renderer.setBackground(Configuration.getColor("coloring.collection_tree_background", true));
    102102        }
    103103    }
  • trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTreeCellRenderer.java

    r6255 r8231  
    7777
    7878        String new_value = null;
    79         if(Gatherer.config.get("general.show_file_size", Configuration.COLLECTION_SPECIFIC) && node.getFile() != null && !node.getAllowsChildren()) {
     79        if(Configuration.get("general.show_file_size", Configuration.COLLECTION_SPECIFIC) && node.getFile() != null && !node.getAllowsChildren()) {
    8080        new_value = node.toString() + StaticStrings.SPACE_CHARACTER + StaticStrings.LBRACKET_CHARACTER + Utility.formatFileLength(node.getFile().length()) + StaticStrings.RBRACKET_CHARACTER;
    8181        }
  • trunk/gli/src/org/greenstone/gatherer/gui/tree/WorkspaceTree.java

    r7639 r8231  
    44import java.util.Enumeration;
    55import javax.swing.tree.TreePath;
     6import org.greenstone.gatherer.Configuration;
    67import org.greenstone.gatherer.Gatherer;
    78import org.greenstone.gatherer.file.FileNode;
     
    4950    if (refresh_reason == WorkspaceTree.LIBRARY_CONTENTS_CHANGED) {
    5051        Gatherer.println("...Reason: library contents changed.");
    51         String collect_directory_str = Gatherer.config.gsdl_path + Utility.COL_DIR;
     52        String collect_directory_str = Configuration.gsdl_path + Utility.COL_DIR;
    5253        refreshEveryNodeShowingFolder(collect_directory_str);
    5354        WorkspaceTreeModel.refreshGreenstoneCollectionsNode();
  • trunk/gli/src/org/greenstone/gatherer/mem/MEMNode.java

    r7326 r8231  
    151151            File collect_path;
    152152            if (Gatherer.GS3) {
    153                 collect_path = new File(Utility.getCollectDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name));
     153                collect_path = new File(Utility.getCollectDir(Configuration.gsdl3_path, Configuration.site_name));
    154154            }  else {
    155                 collect_path = new File(Utility.getCollectDir(Gatherer.config.gsdl_path));
     155                collect_path = new File(Utility.getCollectDir(Configuration.gsdl_path));
    156156            }
    157157            File current_path = source_path;
  • trunk/gli/src/org/greenstone/gatherer/mem/MetadataEditorManager.java

    r7162 r8231  
    4444import javax.swing.text.*;
    4545import javax.swing.tree.*;
     46import org.greenstone.gatherer.Configuration;
    4647import org.greenstone.gatherer.Dictionary;
    4748import org.greenstone.gatherer.Gatherer;
     
    153154    super(Gatherer.g_man);
    154155    this.dialog_options = new String[2];
    155     this.screen_size = Gatherer.config.screen_size;
     156    this.screen_size = Configuration.screen_size;
    156157    this.self = this;
    157158
     
    167168
    168169    JPanel content_pane = (JPanel) getContentPane();
    169     content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     170    content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    170171         
    171172    JPanel upper_pane = new JPanel();
     
    180181    mds_tree.setCellRenderer(new MEMTreeCellRenderer());
    181182    mds_tree.setRootVisible(false);
    182     mds_tree.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    183     mds_tree.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    184     mds_tree.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    185     mds_tree.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     183    mds_tree.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     184    mds_tree.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     185    mds_tree.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     186    mds_tree.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    186187    // We may have been asked to select a cetain initial set
    187188    if(set != null) {
     
    219220    set_attributes_pane.setOpaque(false);
    220221    set_attributes_scroll = new JScrollPane();
    221     set_attributes_scroll.getViewport().setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     222    set_attributes_scroll.getViewport().setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    222223    set_attributes_scroll.setOpaque(true);
    223224    set_attributes = new SmarterTable();
    224225    set_attributes.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    225     set_attributes.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    226     set_attributes.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    227     set_attributes.setHeadingBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
    228     set_attributes.setHeadingForeground(Gatherer.config.getColor("coloring.collection_heading_foreground", false));
     226    set_attributes.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     227    set_attributes.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     228    set_attributes.setHeadingBackground(Configuration.getColor("coloring.collection_heading_background", false));
     229    set_attributes.setHeadingForeground(Configuration.getColor("coloring.collection_heading_foreground", false));
    229230    set_attributes.setOpaque(false);
    230     set_attributes.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    231     set_attributes.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     231    set_attributes.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     232    set_attributes.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    232233    set_attributes.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    233234         
     
    250251    element_attributes_pane.setOpaque(false);
    251252    element_attributes_scroll = new JScrollPane();
    252     element_attributes_scroll.getViewport().setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     253    element_attributes_scroll.getViewport().setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    253254    element_attributes_scroll.setOpaque(true);
    254255    element_attributes = new SmarterTable();
    255256    element_attributes.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    256     element_attributes.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    257     element_attributes.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    258     element_attributes.setHeadingBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
    259     element_attributes.setHeadingForeground(Gatherer.config.getColor("coloring.collection_heading_foreground", false));
    260     element_attributes.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    261     element_attributes.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     257    element_attributes.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     258    element_attributes.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     259    element_attributes.setHeadingBackground(Configuration.getColor("coloring.collection_heading_background", false));
     260    element_attributes.setHeadingForeground(Configuration.getColor("coloring.collection_heading_foreground", false));
     261    element_attributes.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     262    element_attributes.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    262263    element_attributes.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    263264
     
    266267    element_values_pane.setOpaque(false);
    267268    element_values = new SmarterTree();
    268     element_values.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    269     element_values.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
     269    element_values.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     270    element_values.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
    270271    element_values.setRootVisible(false);
    271     element_values.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    272     element_values.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     272    element_values.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     273    element_values.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    273274
    274275    JPanel element_novalues_pane = new JPanel();
     
    290291    profile_attributes_pane.setOpaque(false);
    291292    profile_attributes_scroll = new JScrollPane();
    292     profile_attributes_scroll.getViewport().setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     293    profile_attributes_scroll.getViewport().setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    293294    profile_attributes_scroll.setOpaque(true);
    294295    profile_attributes = new SmarterTable();
    295296    profile_attributes.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    296     profile_attributes.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    297     profile_attributes.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    298     profile_attributes.setHeadingBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
    299     profile_attributes.setHeadingForeground(Gatherer.config.getColor("coloring.collection_heading_foreground", false));
    300     profile_attributes.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    301     profile_attributes.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     297    profile_attributes.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     298    profile_attributes.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     299    profile_attributes.setHeadingBackground(Configuration.getColor("coloring.collection_heading_background", false));
     300    profile_attributes.setHeadingForeground(Configuration.getColor("coloring.collection_heading_foreground", false));
     301    profile_attributes.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     302    profile_attributes.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    302303    profile_attributes.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    303304
     
    642643        // Creation
    643644        JPanel content_pane = (JPanel) getContentPane();
    644         content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     645        content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    645646        JPanel upper_pane = new JPanel();
    646647        upper_pane.setOpaque(false);
     
    675676
    676677        JTextArea v_text_area = (JTextArea) value.getTextComponent();
    677         v_text_area.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    678         v_text_area.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    679         v_text_area.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    680         v_text_area.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     678        v_text_area.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     679        v_text_area.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     680        v_text_area.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     681        v_text_area.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    681682        Dictionary.setTooltip(v_text_area, "MEM.Attribute_Value_Tooltip");
    682683
     
    727728        content_pane.add(center_pane, BorderLayout.CENTER);
    728729
    729         setLocation((Gatherer.config.screen_size.width - ADD_OR_EDIT_ATTRIBUTE_SIZE.width) / 2, (Gatherer.config.screen_size.height - ADD_OR_EDIT_ATTRIBUTE_SIZE.height) / 2);
     730        setLocation((Configuration.screen_size.width - ADD_OR_EDIT_ATTRIBUTE_SIZE.width) / 2, (Configuration.screen_size.height - ADD_OR_EDIT_ATTRIBUTE_SIZE.height) / 2);
    730731    }
    731732    /** Any implementation of ActionListener must include this method so that we can be informed when an action as occured on our registered component, allowing us to add a new attribute to the selected set or element.
     
    10471048        // Creation
    10481049        JPanel content_pane = (JPanel) getContentPane();
    1049         content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     1050        content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    10501051        JPanel center_pane = new JPanel();
    10511052        center_pane.setOpaque(false);
     
    10651066        Dictionary.setText(name_label, "MEM.Name");
    10661067        name_field = new NonWhitespaceField();
    1067         name_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    1068         name_field.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    1069         name_field.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    1070         name_field.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     1068        name_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     1069        name_field.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     1070        name_field.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     1071        name_field.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    10711072        Dictionary.setTooltip(name_field, "MEM.Element_Name_Tooltip");
    10721073
     
    11121113        content_pane.add(button_pane, BorderLayout.SOUTH);
    11131114
    1114         setLocation((Gatherer.config.screen_size.width - ADD_ELEMENT_SIZE.width) / 2, (Gatherer.config.screen_size.height - ADD_ELEMENT_SIZE.height) / 2);
     1115        setLocation((Configuration.screen_size.width - ADD_ELEMENT_SIZE.width) / 2, (Configuration.screen_size.height - ADD_ELEMENT_SIZE.height) / 2);
    11151116    }
    11161117
     
    11261127        if(!current_set.containsElement(name_str)) {
    11271128            // Add it,
    1128             String language_code = Gatherer.config.getLanguage();
     1129            String language_code = Configuration.getLanguage();
    11291130            ElementWrapper element = current_set.addElement(name_str, language_code);
    11301131            // Then update the tree
     
    11871188        // Creation
    11881189        JPanel content_pane = (JPanel) getContentPane();
    1189         content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     1190        content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    11901191        JPanel center_pane = new JPanel();
    11911192        center_pane.setOpaque(false);
     
    12021203        Dictionary.setText(name_label, "MEM.Name");
    12031204        name_field = new JTextField();
    1204         name_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    1205         name_field.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    1206         name_field.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    1207         name_field.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     1205        name_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     1206        name_field.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     1207        name_field.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     1208        name_field.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    12081209        Dictionary.setTooltip(name_field, "MEM.Profile_Name_Tooltip");
    12091210
     
    12481249        content_pane.add(button_pane, BorderLayout.SOUTH);
    12491250
    1250         setLocation((Gatherer.config.screen_size.width - ADD_FILE_SIZE.width) / 2, (Gatherer.config.screen_size.height - ADD_FILE_SIZE.height) / 2);
     1251        setLocation((Configuration.screen_size.width - ADD_FILE_SIZE.width) / 2, (Configuration.screen_size.height - ADD_FILE_SIZE.height) / 2);
    12511252    }
    12521253    /** Any implementation of ActionListener must include this method so that we can be informed when an action as occured on our registered component, allowing us to
     
    13051306        // Creation
    13061307        JPanel content_pane = (JPanel) getContentPane();
    1307         content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     1308        content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    13081309        JPanel center_pane = new JPanel();
    13091310        center_pane.setOpaque(false);
     
    13161317        Dictionary.setText(namespace_label, "MEM.Namespace");
    13171318        namespace_field = TransformCharacterTextField.createNamespaceTextField();
    1318         namespace_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    1319         namespace_field.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    1320         namespace_field.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    1321         namespace_field.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     1319        namespace_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     1320        namespace_field.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     1321        namespace_field.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     1322        namespace_field.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    13221323        Dictionary.setTooltip(namespace_field, "MEM.Set_Namespace_Tooltip");
    13231324
     
    13261327        Dictionary.setText(name_label, "MEM.Name");
    13271328        name_field = new JTextField();
    1328         name_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    1329         name_field.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    1330         name_field.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    1331         name_field.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     1329        name_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     1330        name_field.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     1331        name_field.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     1332        name_field.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    13321333        Dictionary.setTooltip(name_field, "MEM.Set_Name_Tooltip");
    13331334
     
    13711372        content_pane.add(button_pane, BorderLayout.SOUTH);
    13721373
    1373         setLocation((Gatherer.config.screen_size.width - ADD_SET_SIZE.width) / 2, (Gatherer.config.screen_size.height - ADD_SET_SIZE.height) / 2);
     1374        setLocation((Configuration.screen_size.width - ADD_SET_SIZE.width) / 2, (Configuration.screen_size.height - ADD_SET_SIZE.height) / 2);
    13741375    }
    13751376    /** Any implementation of ActionListener must include this method so that we can be informed when an action as occured on our registered component, allowing us to
     
    14341435        // Create
    14351436        JPanel content_pane = (JPanel) getContentPane();
    1436         content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     1437        content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    14371438        JPanel center_pane = new JPanel();
    14381439        center_pane.setOpaque(false);
     
    14451446        Dictionary.setText(subject_tree_label, "MEM.Subject");
    14461447        subject_tree = new SmarterTree();
    1447         subject_tree.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    1448         subject_tree.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    1449         subject_tree.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    1450         subject_tree.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     1448        subject_tree.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     1449        subject_tree.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     1450        subject_tree.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     1451        subject_tree.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    14511452        JPanel value_pane = new JPanel();
    14521453        value_pane.setOpaque(false);
     
    14551456        Dictionary.setText(value_label, "MEM.Value");
    14561457        value = new JTextArea();
    1457         value.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    1458         value.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    1459         value.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    1460         value.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     1458        value.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     1459        value.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     1460        value.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     1461        value.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    14611462        Dictionary.setTooltip(value, "MEM.Value_Tooltip");
    14621463
     
    15021503        content_pane.add(inner_pane, BorderLayout.CENTER);
    15031504        content_pane.add(button_pane, BorderLayout.SOUTH);
    1504         setLocation((Gatherer.config.screen_size.width - ADD_OR_EDIT_VALUE_SIZE.width) / 2, (Gatherer.config.screen_size.height - ADD_OR_EDIT_VALUE_SIZE.height) / 2);
     1505        setLocation((Configuration.screen_size.width - ADD_OR_EDIT_VALUE_SIZE.width) / 2, (Configuration.screen_size.height - ADD_OR_EDIT_VALUE_SIZE.height) / 2);
    15051506    }
    15061507    /** Any implementation of ActionListener must include this method so that we can be informed when an action as occured on our registered component, allowing us to add a new metadata value to the assigned values tree.
  • trunk/gli/src/org/greenstone/gatherer/metadata/MetadataAuditTableModel.java

    r8168 r8231  
    129129
    130130        // Get the extracted metadata for this file, if desired
    131         if (Gatherer.config.get("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC) == true) {
     131        if (Configuration.get("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC) == true) {
    132132            current_file_metadata.addAll(DocXMLFileManager.getMetadataExtractedFromFile(current_file));
    133133        }
  • trunk/gli/src/org/greenstone/gatherer/metadata/MetadataElement.java

    r8164 r8231  
    2929
    3030import java.io.File;
    31 import org.greenstone.gatherer.Gatherer;
     31import org.greenstone.gatherer.Configuration;
    3232import org.greenstone.gatherer.util.XMLTools;
    3333import org.w3c.dom.*;
     
    101101    public String getDisplayName()
    102102    {
    103     String metadata_element_display_name = MetadataTools.getMetadataElementAttribute(this, "identifier", Gatherer.config.getLanguage(), "en");
     103    String metadata_element_display_name = MetadataTools.getMetadataElementAttribute(this, "identifier", Configuration.getLanguage(), "en");
    104104    if (metadata_element_display_name != null) {
    105105        return getNamespace() + "." + metadata_element_display_name;
  • trunk/gli/src/org/greenstone/gatherer/metadata/MetadataValueTableModel.java

    r8165 r8231  
    178178
    179179        // Get the extracted metadata for this file, if desired
    180         if (Gatherer.config.get("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC) == true) {
     180        if (Configuration.get("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC) == true) {
    181181            ArrayList extracted_metadata = DocXMLFileManager.getMetadataExtractedFromFile(current_file);
    182182            for (int k = 0; k < extracted_metadata.size(); k++) {
  • trunk/gli/src/org/greenstone/gatherer/msm/ExportMDSPrompt.java

    r6318 r8231  
    4242import javax.swing.*;
    4343import javax.swing.filechooser.*;
     44import org.greenstone.gatherer.Configuration;
    4445import org.greenstone.gatherer.Dictionary;
    4546import org.greenstone.gatherer.Gatherer;
     
    201202    content_pane.add(button_pane, BorderLayout.SOUTH);
    202203    // Display
    203     Dimension screen_size = Gatherer.config.screen_size;
     204    Dimension screen_size = Configuration.screen_size;
    204205    setLocation((screen_size.width - getSize().width) / 2, (screen_size.height - getSize().height) / 2);
    205206    }
  • trunk/gli/src/org/greenstone/gatherer/msm/GreenstoneArchiveParser.java

    r7743 r8231  
    189189        MetadataSet extracted_mds = Gatherer.c_man.msm.getSet(Utility.EXTRACTED_METADATA_NAMESPACE);
    190190        if (extracted_mds != null) {
    191         element = extracted_mds.addElement(name, Gatherer.config.getLanguage());
     191        element = extracted_mds.addElement(name, Configuration.getLanguage());
    192192        }
    193193    }
  • trunk/gli/src/org/greenstone/gatherer/msm/MSMPrompt.java

    r7609 r8231  
    4343import javax.swing.*;
    4444import javax.swing.event.*;
     45import org.greenstone.gatherer.Configuration;
    4546import org.greenstone.gatherer.Dictionary;
    4647import org.greenstone.gatherer.Gatherer;
     
    101102    progress.setStringPainted(true);
    102103
    103     screen_size = Gatherer.config.screen_size;
     104    screen_size = Configuration.screen_size;
    104105    }
    105106
     
    686687    JPanel control_pane = new JPanel();
    687688    JTextArea instructions = new JTextArea();
    688     instructions.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     689    instructions.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    689690    instructions.setEditable(false);
    690691    instructions.setLineWrap(true);
     
    698699    Dictionary.setText(original_label, "MSMPrompt.Select_Element_Original");
    699700    JTextField original = new JTextField(name);
    700     original.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     701    original.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
    701702    original.setEditable(false);
    702703
     
    878879        Element element = mds.getElement(name);
    879880        if (element == null) {
    880         result = mds.addElement(name, Gatherer.config.getLanguage());
     881        result = mds.addElement(name, Configuration.getLanguage());
    881882        }
    882883        else {
  • trunk/gli/src/org/greenstone/gatherer/msm/MSMUtils.java

    r8000 r8231  
    3939import java.io.*;
    4040import java.util.*;
     41import org.greenstone.gatherer.Configuration;
    4142import org.greenstone.gatherer.Gatherer;
    4243import org.greenstone.gatherer.cdm.CommandTokenizer;
     
    379380     */
    380381    static public String getDescription(Element element) {
    381     String language_code_str = Gatherer.config.getLanguage();
     382    String language_code_str = Configuration.getLanguage();
    382383    StringBuffer description = new StringBuffer(StaticStrings.EMPTY_STR);
    383384    description.append(getElementAttribute(element, StaticStrings.DEFINITION_VALUE, language_code_str));
     
    532533     */
    533534    static final public String getIdentifier(Element element) {
    534     String identifier = getElementAttribute(element, StaticStrings.IDENTIFIER_VALUE, Gatherer.config.getLanguage());
     535    String identifier = getElementAttribute(element, StaticStrings.IDENTIFIER_VALUE, Configuration.getLanguage());
    535536    // Failing the above we return the nodes name instead.
    536537    if(identifier == null || identifier.length() == 0) {
  • trunk/gli/src/org/greenstone/gatherer/msm/MetadataSet.java

    r7744 r8231  
    4141import java.util.*;
    4242import org.apache.xerces.dom.*;
     43import org.greenstone.gatherer.Configuration;
    4344import org.greenstone.gatherer.Dictionary;
    4445import org.greenstone.gatherer.Gatherer;
     
    294295     */
    295296    public String getDescription() {
    296     if(current_language_code != null && !Gatherer.config.getLanguage().equals(current_language_code)) {
     297    if(current_language_code != null && !Configuration.getLanguage().equals(current_language_code)) {
    297298        description = null;
    298299    }
     
    391392     */
    392393    public String getName() {
    393     if(current_language_code != null && !Gatherer.config.getLanguage().equals(current_language_code)) {
     394    if(current_language_code != null && !Configuration.getLanguage().equals(current_language_code)) {
    394395        name = null;
    395396    }
     
    537538
    538539    // Determine the language code.
    539     current_language_code = Gatherer.config.getLanguage();
     540    current_language_code = Configuration.getLanguage();
    540541
    541542    ///ystem.err.println("Searching for the " + element_name + " in " + current_language_code);
  • trunk/gli/src/org/greenstone/gatherer/msm/MetadataSetManager.java

    r8035 r8231  
    359359        MetadataSet mds = (MetadataSet)mds_hashtable.get(keys.nextElement());
    360360        if((!mds.getNamespace().equals(Utility.EXTRACTED_METADATA_NAMESPACE) && !mds.getNamespace().equals(HIDDEN))
    361            || (mds.getNamespace().equals(Utility.EXTRACTED_METADATA_NAMESPACE) && (Gatherer.config.get("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC) || force_extracted))
     361           || (mds.getNamespace().equals(Utility.EXTRACTED_METADATA_NAMESPACE) && (Configuration.get("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC) || force_extracted))
    362362           || (mds.getNamespace().equals(Utility.EXTRACTED_METADATA_NAMESPACE) && mds.getNamespace().equals(HIDDEN) && all)) {
    363363        NodeList set_elements = mds.getElements();
  • trunk/gli/src/org/greenstone/gatherer/shell/GBuildProgressMonitor.java

    r7924 r8231  
    217217            state = BUILD;
    218218            // Produce a lower detail message if required
    219             if(Gatherer.config.getMode() <= threshold && !stop) {
     219            if(Configuration.getMode() <= threshold && !stop) {
    220220            queue.add(new GShellEvent(event.getSource(), 0, event.getType(), Dictionary.get("GShell.Build.BuildBegun1"), event.getStatus()));
    221221            }
     
    237237            if(value.equals(COMPRESSTEXT_VALUE)) {
    238238            state = COMPRESSTEXT;
    239             if(Gatherer.config.getMode() <= threshold) {
     239            if(Configuration.getMode() <= threshold) {
    240240                queue.add(new GShellEvent(event.getSource(), 0, event.getType(), Dictionary.get("GShell.Build.CompressText"), event.getStatus()));
    241241            }
     
    243243            else if(value.equals(INDEX_VALUE)) {
    244244            state = INDEX;
    245             if(Gatherer.config.getMode() <= threshold) {
     245            if(Configuration.getMode() <= threshold) {
    246246                String args[] = new String[1];
    247247                args[0] = element.getAttribute(SOURCE_ATTRIBUTE);
     
    252252            else if(value.equals(CREATEINFODATA_VALUE)) {
    253253            state = CREATEINFODATA;
    254             if(Gatherer.config.getMode() <= threshold) {
     254            if(Configuration.getMode() <= threshold) {
    255255                queue.add(new GShellEvent(event.getSource(), 0, event.getType(), Dictionary.get("GShell.Build.InfoDatabase"), event.getStatus()));
    256256            }
     
    258258            else if(value.equals(PHIND_VALUE)) {
    259259            state = PHIND;
    260             if(Gatherer.config.getMode() <= threshold) {
     260            if(Configuration.getMode() <= threshold) {
    261261                queue.add(new GShellEvent(event.getSource(), 0, event.getType(), Dictionary.get("GShell.Build.Phind"), event.getStatus()));
    262262            }
     
    264264            else if(value.equals(CREATINGAUXILARY_VALUE)) {
    265265            state = CREATINGAUXILARY;
    266             if(Gatherer.config.getMode() <= threshold) {
     266            if(Configuration.getMode() <= threshold) {
    267267                queue.add(new GShellEvent(event.getSource(), 0, event.getType(), Dictionary.get("GShell.Build.Auxilary"), event.getStatus()));
    268268            }
     
    280280            setValue(MAX);
    281281            state = BASE;
    282             if(Gatherer.config.getMode() <= threshold) {
     282            if(Configuration.getMode() <= threshold) {
    283283            queue.add(new GShellEvent(event.getSource(), 0, event.getType(), Dictionary.get("GShell.Build.BuildComplete1"), event.getStatus()));
    284284            }
     
    470470    }
    471471    // If we are dealing with lower detail modes then veto any other messages. We do this here as the progress monitors are garuenteed to recieve this message before anything else
    472     else if(Gatherer.config.getMode() <= threshold) {
     472    else if(Configuration.getMode() <= threshold) {
    473473        event.veto();
    474474    }
  • trunk/gli/src/org/greenstone/gatherer/shell/GImportProgressMonitor.java

    r7963 r8231  
    222222            showing_string = false;
    223223        }
    224         if(Gatherer.config.getMode() <= threshold) {
     224        if(Configuration.getMode() <= threshold) {
    225225            queue.add(new GShellEvent(event.getSource(), 0, event.getType(), Dictionary.get("GShell.Import.ImportBegun1"), event.getStatus()));
    226226        }
     
    241241        ///ystem.err.println("#FileProcessing");
    242242        // If we are at lower mode settings fire a new 'dumbed down' event
    243         if(Gatherer.config.getMode() <= threshold) {
     243        if(Configuration.getMode() <= threshold) {
    244244            String args[] = new String[2];
    245245            args[0] = element.getAttribute(NAME_ATTRIBUTE);
     
    251251        // processing error
    252252        else if (name.equals(PROCESSINGERROR_ELEMENT)) {
    253         if(Gatherer.config.getMode() <= threshold) {
     253        if(Configuration.getMode() <= threshold) {
    254254            String args[] = new String[1];
    255255            args[0] = element.getAttribute(NAME_ATTRIBUTE);
     
    260260        // unrecognised file
    261261        else if (name.equals(NONRECOGNISEDFILE_ELEMENT)) {
    262         if(Gatherer.config.getMode() <= threshold) {
     262        if(Configuration.getMode() <= threshold) {
    263263            String args[] = new String[1];
    264264            args[0] =element.getAttribute(NAME_ATTRIBUTE);
     
    269269        // unprocessed file
    270270        else if (name.equals(NONPROCESSEDFILE_ELEMENT)) {
    271         if(Gatherer.config.getMode() <= threshold) {
     271        if(Configuration.getMode() <= threshold) {
    272272            String args[] = new String[1];
    273273            args[0] =element.getAttribute(NAME_ATTRIBUTE);         
     
    281281        setValue(next_progress_value);
    282282        // If we are at lower mode settings fire a new 'dumbed down' event
    283         if(Gatherer.config.getMode() <= threshold) {
     283        if(Configuration.getMode() <= threshold) {
    284284            queue.add(new GShellEvent(event.getSource(), 0, event.getType(), Dictionary.get("GShell.Import.ImportComplete1"), event.getStatus()));
    285285            String considered_str = element.getAttribute(CONSIDERED_ATTRIBUTE);
     
    361361        }
    362362    } // GLI output
    363     else if(Gatherer.config.getMode() <= threshold) {
     363    else if(Configuration.getMode() <= threshold) {
    364364        event.veto();
    365365    }
  • trunk/gli/src/org/greenstone/gatherer/shell/GShell.java

    r8205 r8231  
    473473        Utility.upload_url_zip(col_name,"etc");
    474474
    475         String col_dir = Utility.getCollectionDir(Gatherer.config.gsdl_path, col_name);
     475        String col_dir = Utility.getCollectionDir(Configuration.gsdl_path, col_name);
    476476        File img_dir = new File(Utility.getImagesDir(col_dir));
    477477        if (img_dir.exists()) {
     
    654654   
    655655    // If we were cancelled, and we are lower details modes, fire off one last message.
    656     if(status == CANCELLED && Gatherer.config.getMode() <= Configuration.SYSTEMS_MODE) {
     656    if(status == CANCELLED && Configuration.getMode() <= Configuration.SYSTEMS_MODE) {
    657657        GShellEvent current_event = new GShellEvent(this, 0, type, Dictionary.get("GShell.Build.BuildCancelled"), status);
    658658        Object[] concerned = listeners.getListenerList();
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r8148 r8231  
    4646import org.apache.xerces.parsers.*;
    4747import org.apache.xml.serialize.*;
     48import org.greenstone.gatherer.Configuration;
    4849import org.greenstone.gatherer.Dictionary;
    4950import org.greenstone.gatherer.Gatherer;
     
    498499
    499500    if (Gatherer.GS3) {
    500         this_col_dir = getCollectionDir(Gatherer.config.gsdl3_path, Gatherer.config.site_name, col_name);
     501        this_col_dir = getCollectionDir(Configuration.gsdl3_path, Configuration.site_name, col_name);
    501502    } else {
    502         this_col_dir = getCollectionDir(Gatherer.config.gsdl_path, col_name);
     503        this_col_dir = getCollectionDir(Configuration.gsdl_path, col_name);
    503504       
    504505    }
     
    584585    static public String getHelpFolder() {
    585586
    586     String help_folder = "help/" + Gatherer.config.getLanguage() + "/";
     587    String help_folder = "help/" + Configuration.getLanguage() + "/";
    587588
    588589    // Try in the JAR/classes directory first
     
    813814           
    814815        // set up output stream for zip download
    815         String col_dir = Utility.getCollectDir(Gatherer.config.gsdl_path);
     816        String col_dir = Utility.getCollectDir(Configuration.gsdl_path);
    816817        String zip_fname = col_dir + col_name + ".zip";
    817818        FileOutputStream zip_fos = new FileOutputStream(zip_fname);
     
    842843    final int maxBufferSize = 1024;
    843844
    844     String col_dir = Utility.getCollectDir(Gatherer.config.gsdl_path);
     845    String col_dir = Utility.getCollectDir(Configuration.gsdl_path);
    845846    String zip_fname = col_dir + col_name + ".zip";
    846847    String upload_cgi = Gatherer.cgiBase + "upload";
     
    10271028    static public void zipup(String col_name, String dir_or_file)
    10281029    {
    1029     String col_dir = Utility.getCollectDir(Gatherer.config.gsdl_path);
     1030    String col_dir = Utility.getCollectDir(Configuration.gsdl_path);
    10301031    int prefix_strip = col_dir.length();
    10311032
     
    10801081    static public void unzip(String col_name)
    10811082    {
    1082     String col_dir = Utility.getCollectDir(Gatherer.config.gsdl_path);
     1083    String col_dir = Utility.getCollectDir(Configuration.gsdl_path);
    10831084    String zip_fname = col_dir + col_name + ".zip";
    10841085    int zip_mode = ZipFile.OPEN_READ | ZipFile.OPEN_DELETE;
Note: See TracChangeset for help on using the changeset viewer.