Changeset 16855


Ignore:
Timestamp:
2008-08-18T09:50:42+12:00 (13 years ago)
Author:
kjdon
Message:

added in support for displaying a warning element at lower modes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/shell/GImportProgressMonitor.java

    r16853 r16855  
    317317        }
    318318        }
     319        else if (name.equals(WARNING_ELEMENT)) {
     320        if(Configuration.getMode() <= threshold) {
     321            String args[] = new String[1];
     322            args[0] = element.getAttribute(PLUGIN_ATTRIBUTE);
     323            String reason = element.getAttribute(REASON_ATTRIBUTE);
     324            queue.add(new GShellEvent(event.getSource(), 0, event.getType(), Dictionary.get("GShell.Import.Warning", args) + " " + reason, event.getStatus()));
     325            args = null;
     326        }
     327        }
     328       
     329       
    319330        // Or the import complete element
    320331        else if(name.equals(IMPORTCOMPLETE_ELEMENT)) {
Note: See TracChangeset for help on using the changeset viewer.