Changeset 16855

Show
Ignore:
Timestamp:
18.08.2008 09:50:42 (11 years ago)
Author:
kjdon
Message:

added in support for displaying a warning element at lower modes

Files:
1 modified

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)) {