Changeset 8605
- Timestamp:
- 2004-11-19T15:12:39+13:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r8597 r8605 98 98 static public ServletConfiguration servlet_config; 99 99 /** A public reference to the Dictionary. */ 100 static public Dictionary dictionary;100 // static public Dictionary dictionary; 101 101 /** A public reference to the FileManager. */ 102 102 static public FileManager f_man; … … 198 198 199 199 // Read Dictionary 200 dictionary = new Dictionary(Configuration.getLocale("general.locale", true), Configuration.getFont("general.font", true)); 201 200 new Dictionary(Configuration.getLocale("general.locale", true), Configuration.getFont("general.font", true)); 202 201 203 202 if (gsdl_path == null) { … … 431 430 g_man.destroy(); 432 431 g_man_built = false; 433 434 435 // Flush dictionary436 // dictionary.destroy();437 432 438 433 // Flush debug -
trunk/gli/src/org/greenstone/gatherer/gui/WarningDialog.java
r8243 r8605 35 35 import org.greenstone.gatherer.util.Utility; 36 36 37 /** Warn a user that they are about to add folder level metadata. */ 37 38 /** A dialog that warns about something, and allows the user to turn off the warning in the future. */ 38 39 public class WarningDialog 39 40 extends ModalDialog … … 43 44 static final private Dimension SETTING_SIZE = new Dimension(450, 200); 44 45 45 private Dictionary dictionary;46 46 private int result = JOptionPane.CANCEL_OPTION; 47 47 private JButton cancel_button; … … 54 54 private String warning_name; 55 55 56 public WarningDialog(String full_property) {57 this(full_property, false, null, Gatherer.dictionary);58 }59 56 60 57 public WarningDialog(String full_property, boolean can_cancel) { 61 this(full_property, can_cancel, null , Gatherer.dictionary);58 this(full_property, can_cancel, null); 62 59 } 63 60 64 61 public WarningDialog(String full_property, String affected_property) { 65 this(full_property, false, affected_property, Gatherer.dictionary); 66 } 67 68 public WarningDialog(String full_property, boolean can_cancel, Dictionary dictionary) { 69 this(full_property, can_cancel, null, dictionary); 70 } 71 72 public WarningDialog(String full_property, String affected_feature, Dictionary dictionary) { 73 this(full_property, false, affected_feature, dictionary); 74 } 75 76 public WarningDialog(String full_property, boolean can_cancel, String affected_property) { 77 this(full_property, can_cancel, affected_property, Gatherer.dictionary); 78 } 79 80 public WarningDialog(String full_property, boolean can_cancel, String affected_property, Dictionary dictionary) { 62 this(full_property, false, affected_property); 63 } 64 65 66 private WarningDialog(String full_property, boolean can_cancel, String affected_property) { 81 67 super(Gatherer.g_man, "Warning", true); 82 68 83 69 // Determine the name of this prompt. 84 70 this.affected_property = affected_property; 85 this.dictionary = dictionary;86 71 this.full_property = full_property; 87 72 warning_name = full_property.substring(full_property.indexOf(".") + 1);
Note:
See TracChangeset
for help on using the changeset viewer.