Changeset 8606
- Timestamp:
- 2004-11-19T15:27:04+13:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r8605 r8606 550 550 message_name = "warning.MissingEXEC"; 551 551 } 552 WarningDialog dialog = new WarningDialog(message_name, "general.exec_address" 552 WarningDialog dialog = new WarningDialog(message_name, "general.exec_address", false); 553 553 dialog.setValueField(new URLField(Configuration.getColor("coloring.editable_foreground", false), Configuration.getColor("coloring.editable_background", false), Configuration.getColor("coloring.error_foreground", false), Configuration.getColor("coloring.error_background", false))); 554 554 dialog.display(); … … 570 570 */ 571 571 static public void missingGSDL() { 572 WarningDialog dialog = new WarningDialog("warning.MissingGSDL", false);572 WarningDialog dialog = new WarningDialog("warning.MissingGSDL", null, false); 573 573 dialog.display(); 574 574 dialog.dispose(); … … 578 578 /** Prints a warning message about a missing PERL path, which although not fatal pretty much ensures no collection creation/building will work properly in the Gatherer. */ 579 579 static public void missingPERL() { 580 WarningDialog dialog = new WarningDialog("warning.MissingPERL", false);580 WarningDialog dialog = new WarningDialog("warning.MissingPERL", null, false); 581 581 dialog.display(); 582 582 dialog.dispose(); … … 586 586 /** Prints a warning message about a missing a valid WGet path. not fatal, but mirroring won't work */ 587 587 static public void missingWGET() { 588 WarningDialog dialog = new WarningDialog("warning.MissingWGET", false);588 WarningDialog dialog = new WarningDialog("warning.MissingWGET", null, false); 589 589 dialog.display(); 590 590 dialog.dispose(); … … 593 593 /** Prints a warning message about having an old version of WGet. not fatal, but mirroring may not work properly */ 594 594 static public void oldWGET() { 595 WarningDialog dialog = new WarningDialog("warning.OldWGET", false);595 WarningDialog dialog = new WarningDialog("warning.OldWGET", null, false); 596 596 dialog.display(); 597 597 dialog.dispose(); -
trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java
r8243 r8606 385 385 if(NewCollectionDetailsPrompt.titleClashes(title, CollectionDesignManager.collect_config.getFile())) { 386 386 // Determine if the user wants to be warned about this 387 WarningDialog dialog = new WarningDialog("warning.TitleClashes", true);387 WarningDialog dialog = new WarningDialog("warning.TitleClashes", null, true); 388 388 if(dialog.display() == JOptionPane.OK_OPTION) { 389 389 // If they have said yes, then carry on with the assignement … … 434 434 if(!has_been_warned && NewCollectionDetailsPrompt.titleClashes(title, CollectionDesignManager.collect_config.getFile())) { 435 435 // Determine if the user wants to be warned about this 436 WarningDialog dialog = new WarningDialog("warning.TitleClashes", true);436 WarningDialog dialog = new WarningDialog("warning.TitleClashes", null, true); 437 437 if(dialog.display() == JOptionPane.OK_OPTION) { 438 438 // If they have said yes, then carry on with the assignement -
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r8600 r8606 1167 1167 1168 1168 // Now display a message dialog saying its all built 1169 WarningDialog collection_built_warning_dialog = new WarningDialog("warning.CollectionBuilt", false);1169 WarningDialog collection_built_warning_dialog = new WarningDialog("warning.CollectionBuilt", null, false); 1170 1170 collection_built_warning_dialog.setMessageOnly(true); // Not a warning 1171 1171 collection_built_warning_dialog.display(); -
trunk/gli/src/org/greenstone/gatherer/gui/EnrichPane.java
r8503 r8606 504 504 MetadataValue previously_selected_metadata_value = metadata_value_table.getSelectedMetadataValueTableEntry(); 505 505 metadata_value_table.rebuildAndSelectRowWithValueClosestTo(previously_selected_metadata_value); 506 507 // // Update the meta-audit view to show the current selection, if any.508 // Gatherer.g_man.meta_audit.setRecords(file_nodes);509 506 } 510 507 … … 528 525 // If we're adding metadata to folders display the warning 529 526 if (!file_nodes[0].isLeaf()) { 530 WarningDialog dialog = new WarningDialog("warning.DirectoryLevelMetadata", true);527 WarningDialog dialog = new WarningDialog("warning.DirectoryLevelMetadata", null, true); 531 528 int dialog_result = dialog.display(); 532 529 dialog.dispose(); -
trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionMetadataPrompt.java
r8313 r8606 309 309 cancelled = false; 310 310 if(selected_sets.size() == 0) { 311 WarningDialog dialog = new WarningDialog("warning.NoMetadataSetsSelected", true);311 WarningDialog dialog = new WarningDialog("warning.NoMetadataSetsSelected", null, true); 312 312 if(dialog.display() == JOptionPane.OK_OPTION) { 313 313 // Otherwise we are free to go -
trunk/gli/src/org/greenstone/gatherer/gui/WarningDialog.java
r8605 r8606 55 55 56 56 57 public WarningDialog(String full_property, boolean can_cancel) { 58 this(full_property, can_cancel, null); 59 } 60 61 public WarningDialog(String full_property, String affected_property) { 62 this(full_property, false, affected_property); 63 } 64 65 66 private WarningDialog(String full_property, boolean can_cancel, String affected_property) { 57 public WarningDialog(String full_property, String affected_property, boolean can_cancel) 58 { 67 59 super(Gatherer.g_man, "Warning", true); 68 60 … … 268 260 } 269 261 } 270 271 272 273 274 275 276 277 -
trunk/gli/src/org/greenstone/gatherer/metadata/MetadataValueTableModel.java
r8231 r8606 256 256 Runnable task = new Runnable() { 257 257 public void run() { 258 WarningDialog dialog = new WarningDialog("warning.ExtractedMetadata", false);258 WarningDialog dialog = new WarningDialog("warning.ExtractedMetadata", null, false); 259 259 dialog.display(); 260 260 dialog.dispose(); … … 270 270 Runnable task = new Runnable() { 271 271 public void run() { 272 WarningDialog dialog = new WarningDialog("warning.InheritedMetadata", false);272 WarningDialog dialog = new WarningDialog("warning.InheritedMetadata", null, false); 273 273 dialog.display(); 274 274 dialog.dispose();
Note:
See TracChangeset
for help on using the changeset viewer.