Ignore:
Timestamp:
2005-05-13T10:42:26+12:00 (19 years ago)
Author:
mdewsnip
Message:

Changed WarningDialog to take the direct message text, rather than the message text key. This makes it more flexible, allowing arguments in the message text (eg. used by PluginManager).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r9350 r9864  
    385385        if(NewCollectionDetailsPrompt.titleClashes(title, CollectionDesignManager.collect_config.getFile())) {
    386386        // Determine if the user wants to be warned about this
    387         WarningDialog dialog = new WarningDialog("warning.TitleClashes", "TitleClashes.Title", "TitleClashes.Message", null, true);
     387        WarningDialog dialog = new WarningDialog("warning.TitleClashes", "TitleClashes.Title", Dictionary.get("TitleClashes.Message"), null, true);
    388388        if(dialog.display() == JOptionPane.OK_OPTION) {
    389389            // If they have said yes, then carry on with the assignement
     
    434434        if(!has_been_warned && NewCollectionDetailsPrompt.titleClashes(title, CollectionDesignManager.collect_config.getFile())) {
    435435            // Determine if the user wants to be warned about this
    436             WarningDialog dialog = new WarningDialog("warning.TitleClashes", "TitleClashes.Title", "TitleClashes.Message", null, true);
     436            WarningDialog dialog = new WarningDialog("warning.TitleClashes", "TitleClashes.Title", Dictionary.get("TitleClashes.Message"), null, true);
    437437            if(dialog.display() == JOptionPane.OK_OPTION) {
    438438            // If they have said yes, then carry on with the assignement
Note: See TracChangeset for help on using the changeset viewer.