Changeset 8231 for trunk/gli/src/org/greenstone/gatherer/msm
- Timestamp:
- 2004-10-07T16:44:32+13:00 (20 years ago)
- 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 42 42 import javax.swing.*; 43 43 import javax.swing.filechooser.*; 44 import org.greenstone.gatherer.Configuration; 44 45 import org.greenstone.gatherer.Dictionary; 45 46 import org.greenstone.gatherer.Gatherer; … … 201 202 content_pane.add(button_pane, BorderLayout.SOUTH); 202 203 // Display 203 Dimension screen_size = Gatherer.config.screen_size;204 Dimension screen_size = Configuration.screen_size; 204 205 setLocation((screen_size.width - getSize().width) / 2, (screen_size.height - getSize().height) / 2); 205 206 } -
trunk/gli/src/org/greenstone/gatherer/msm/GreenstoneArchiveParser.java
r7743 r8231 189 189 MetadataSet extracted_mds = Gatherer.c_man.msm.getSet(Utility.EXTRACTED_METADATA_NAMESPACE); 190 190 if (extracted_mds != null) { 191 element = extracted_mds.addElement(name, Gatherer.config.getLanguage());191 element = extracted_mds.addElement(name, Configuration.getLanguage()); 192 192 } 193 193 } -
trunk/gli/src/org/greenstone/gatherer/msm/MSMPrompt.java
r7609 r8231 43 43 import javax.swing.*; 44 44 import javax.swing.event.*; 45 import org.greenstone.gatherer.Configuration; 45 46 import org.greenstone.gatherer.Dictionary; 46 47 import org.greenstone.gatherer.Gatherer; … … 101 102 progress.setStringPainted(true); 102 103 103 screen_size = Gatherer.config.screen_size;104 screen_size = Configuration.screen_size; 104 105 } 105 106 … … 686 687 JPanel control_pane = new JPanel(); 687 688 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)); 689 690 instructions.setEditable(false); 690 691 instructions.setLineWrap(true); … … 698 699 Dictionary.setText(original_label, "MSMPrompt.Select_Element_Original"); 699 700 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)); 701 702 original.setEditable(false); 702 703 … … 878 879 Element element = mds.getElement(name); 879 880 if (element == null) { 880 result = mds.addElement(name, Gatherer.config.getLanguage());881 result = mds.addElement(name, Configuration.getLanguage()); 881 882 } 882 883 else { -
trunk/gli/src/org/greenstone/gatherer/msm/MSMUtils.java
r8000 r8231 39 39 import java.io.*; 40 40 import java.util.*; 41 import org.greenstone.gatherer.Configuration; 41 42 import org.greenstone.gatherer.Gatherer; 42 43 import org.greenstone.gatherer.cdm.CommandTokenizer; … … 379 380 */ 380 381 static public String getDescription(Element element) { 381 String language_code_str = Gatherer.config.getLanguage();382 String language_code_str = Configuration.getLanguage(); 382 383 StringBuffer description = new StringBuffer(StaticStrings.EMPTY_STR); 383 384 description.append(getElementAttribute(element, StaticStrings.DEFINITION_VALUE, language_code_str)); … … 532 533 */ 533 534 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()); 535 536 // Failing the above we return the nodes name instead. 536 537 if(identifier == null || identifier.length() == 0) { -
trunk/gli/src/org/greenstone/gatherer/msm/MetadataSet.java
r7744 r8231 41 41 import java.util.*; 42 42 import org.apache.xerces.dom.*; 43 import org.greenstone.gatherer.Configuration; 43 44 import org.greenstone.gatherer.Dictionary; 44 45 import org.greenstone.gatherer.Gatherer; … … 294 295 */ 295 296 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)) { 297 298 description = null; 298 299 } … … 391 392 */ 392 393 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)) { 394 395 name = null; 395 396 } … … 537 538 538 539 // Determine the language code. 539 current_language_code = Gatherer.config.getLanguage();540 current_language_code = Configuration.getLanguage(); 540 541 541 542 ///ystem.err.println("Searching for the " + element_name + " in " + current_language_code); -
trunk/gli/src/org/greenstone/gatherer/msm/MetadataSetManager.java
r8035 r8231 359 359 MetadataSet mds = (MetadataSet)mds_hashtable.get(keys.nextElement()); 360 360 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)) 362 362 || (mds.getNamespace().equals(Utility.EXTRACTED_METADATA_NAMESPACE) && mds.getNamespace().equals(HIDDEN) && all)) { 363 363 NodeList set_elements = mds.getElements();
Note:
See TracChangeset
for help on using the changeset viewer.