Changeset 10462
- Timestamp:
- 2005-08-10T15:07:57+12:00 (19 years ago)
- 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 211 211 File child_file = directory_files[i]; 212 212 if (!child_file.isDirectory() && child_file.getName().endsWith(".mds")) { 213 System.err.println("Found mds file: " + child_file);214 213 MetadataSet metadata_set = msm.loadMetadataSet(child_file); 215 214 model.add(null, metadata_set, GEMSNode.SET); -
trunk/gli/src/org/greenstone/gatherer/gems/GEMSPreferences.java
r10371 r10462 37 37 import org.greenstone.gatherer.Configuration; 38 38 import org.greenstone.gatherer.Dictionary; 39 import org.greenstone.gatherer.Gatherer;40 39 import org.greenstone.gatherer.cdm.LanguageManager; 41 40 import org.greenstone.gatherer.gui.*; … … 65 64 public GEMSPreferences() { 66 65 // Initialize 67 super( Gatherer.g_man, true);66 super((JFrame) null, true); 68 67 this.self = this; 69 68 setSize(SIZE); … … 205 204 } 206 205 } 207 208 // Connect209 language_combobox.addActionListener(new LanguageComboboxListener());210 206 211 207 // Layout … … 251 247 if (!current_lang.equals(new_lang)) { 252 248 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); 253 250 } 254 251 … … 316 313 } 317 314 } 318 319 320 private class LanguageComboboxListener321 implements ActionListener {322 public void actionPerformed(ActionEvent event) {323 // Retrieve the entry324 DictionaryEntry entry = (DictionaryEntry) language_combobox.getSelectedItem();325 if(entry != null) {326 //Gatherer.dictionary.changeDictionary(entry.getLocale());327 // Display message328 JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("Preferences.General.Restart_Required"), Dictionary.get("General.Warning"), JOptionPane.WARNING_MESSAGE);329 }330 }331 }332 315 } 333 316
Note:
See TracChangeset
for help on using the changeset viewer.