Ignore:
Timestamp:
2005-03-10T11:54:56+13:00 (19 years ago)
Author:
mdewsnip
Message:

Changed WarningDialog to take the dialog title and message as arguments. This means that these strings are marked as used when running showkeyusage.pl.

Location:
trunk/gli/src/org/greenstone/gatherer/cdm
Files:
2 edited

Legend:

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

    r9045 r9350  
    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", null, true);
     387        WarningDialog dialog = new WarningDialog("warning.TitleClashes", "TitleClashes.Title", "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", null, true);
     436            WarningDialog dialog = new WarningDialog("warning.TitleClashes", "TitleClashes.Title", "TitleClashes.Message", null, true);
    437437            if(dialog.display() == JOptionPane.OK_OPTION) {
    438438            // If they have said yes, then carry on with the assignement
  • trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java

    r9305 r9350  
    157157        String[] args = new String[1];
    158158        args[0] = file.getName();
    159         WarningDialog warning_dialog = new WarningDialog("warning.NoPluginExpectedToProcessFile", args, null, false);
     159        WarningDialog warning_dialog = new WarningDialog("warning.NoPluginExpectedToProcessFile", "NoPluginExpectedToProcessFile.Title", Dictionary.get("NoPluginExpectedToProcessFile.Message", args), null, false);
    160160        warning_dialog.display();
    161161        warning_dialog.dispose();
Note: See TracChangeset for help on using the changeset viewer.