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/msm
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 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();
Note: See TracChangeset for help on using the changeset viewer.