Changeset 10462


Ignore:
Timestamp:
2005-08-10T15:07:57+12:00 (19 years ago)
Author:
mdewsnip
Message:

More GEMS tidy ups: no classes now import the Gatherer class.

Location:
trunk/gli/src/org/greenstone/gatherer/gems
Files:
2 edited

Legend:

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

    r10461 r10462  
    211211        File child_file = directory_files[i];
    212212        if (!child_file.isDirectory() && child_file.getName().endsWith(".mds")) {
    213             System.err.println("Found mds file: " + child_file);
    214213            MetadataSet metadata_set = msm.loadMetadataSet(child_file);
    215214            model.add(null, metadata_set, GEMSNode.SET);
  • trunk/gli/src/org/greenstone/gatherer/gems/GEMSPreferences.java

    r10371 r10462  
    3737import org.greenstone.gatherer.Configuration;
    3838import org.greenstone.gatherer.Dictionary;
    39 import org.greenstone.gatherer.Gatherer;
    4039import org.greenstone.gatherer.cdm.LanguageManager;
    4140import org.greenstone.gatherer.gui.*;
     
    6564    public GEMSPreferences() {
    6665    // Initialize
    67     super(Gatherer.g_man, true);
     66    super((JFrame) null, true);
    6867    this.self = this;
    6968    setSize(SIZE);
     
    205204            }   
    206205        }
    207        
    208     // Connect
    209     language_combobox.addActionListener(new LanguageComboboxListener());
    210206
    211207    // Layout
     
    251247        if (!current_lang.equals(new_lang)) {
    252248        Configuration.setLocale("general.locale", Configuration.GENERAL_SETTING, ((DictionaryEntry)language_combobox.getSelectedItem()).getLocale());
     249        JOptionPane.showMessageDialog(null, Dictionary.get("Preferences.General.Restart_Required"), Dictionary.get("General.Warning"), JOptionPane.WARNING_MESSAGE);
    253250        }
    254251           
     
    316313    }
    317314    }
    318 
    319 
    320     private class LanguageComboboxListener
    321     implements ActionListener {
    322     public void actionPerformed(ActionEvent event) {
    323         // Retrieve the entry
    324         DictionaryEntry entry = (DictionaryEntry) language_combobox.getSelectedItem();
    325         if(entry != null) {
    326         //Gatherer.dictionary.changeDictionary(entry.getLocale());
    327         // Display message
    328         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("Preferences.General.Restart_Required"), Dictionary.get("General.Warning"), JOptionPane.WARNING_MESSAGE);
    329         }
    330     }
    331     }
    332315}
    333316
Note: See TracChangeset for help on using the changeset viewer.