Changeset 9350 for trunk/gli/src/org/greenstone/gatherer/gui
- Timestamp:
- 2005-03-10T11:54:56+13:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/EnrichPane.java
r9334 r9350 194 194 // If we're adding metadata to folders display the warning 195 195 if (esrc == add && !file_nodes[0].isLeaf()) { 196 WarningDialog dialog = new WarningDialog("warning.DirectoryLevelMetadata", null, true);196 WarningDialog dialog = new WarningDialog("warning.DirectoryLevelMetadata", "DirectoryLevelMetadata.Title", "DirectoryLevelMetadata.Message", null, true); 197 197 int dialog_result = dialog.display(); 198 198 dialog.dispose(); -
trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionMetadataPrompt.java
r9201 r9350 211 211 cancelled = false; 212 212 if (metadata_sets_list.isNothingTicked()) { 213 WarningDialog dialog = new WarningDialog("warning.NoMetadataSetsSelected", null, true);213 WarningDialog dialog = new WarningDialog("warning.NoMetadataSetsSelected", "NoMetadataSetsSelected.Title", "NoMetadataSetsSelected.Message", null, true); 214 214 if (dialog.display() == JOptionPane.OK_OPTION) { 215 215 // Otherwise we are free to go -
trunk/gli/src/org/greenstone/gatherer/gui/WarningDialog.java
r8607 r9350 39 39 public class WarningDialog 40 40 extends ModalDialog 41 implements ActionListener, KeyListener {42 41 implements ActionListener, KeyListener 42 { 43 43 static final private Dimension NORMAL_SIZE = new Dimension(450, 160); 44 44 static final private Dimension SETTING_SIZE = new Dimension(450, 200); … … 52 52 private String affected_property; 53 53 private String full_property; 54 private String warning_name; 55 56 57 public WarningDialog(String full_property, String affected_property, boolean can_cancel) 58 { 59 this(full_property, null, affected_property, can_cancel); 60 } 61 62 63 public WarningDialog(String full_property, String[] args, String affected_property, boolean can_cancel) 54 55 56 public WarningDialog(String warning_name, String warning_title, String warning_message, String affected_property, boolean can_cancel) 64 57 { 65 58 super(Gatherer.g_man, "Warning", true); … … 67 60 // Determine the name of this prompt. 68 61 this.affected_property = affected_property; 69 this.full_property = full_property; 70 warning_name = full_property.substring(full_property.indexOf(".") + 1); 62 this.full_property = warning_name; 71 63 72 64 // Now build dialog. … … 77 69 setSize(NORMAL_SIZE); 78 70 } 79 Dictionary.setText(this, warning_ name + ".Title");71 Dictionary.setText(this, warning_title); 80 72 81 73 // Creation … … 89 81 text_area.setLineWrap(true); 90 82 text_area.setWrapStyleWord(true); 91 Dictionary.setText(text_area, warning_ name + ".Message", args);83 Dictionary.setText(text_area, warning_message); 92 84 93 85 value_panel = new JPanel();
Note:
See TracChangeset
for help on using the changeset viewer.