Ignore:
Timestamp:
2003-12-19T14:54:25+13:00 (21 years ago)
Author:
jmt12
Message:

Rewrote GImportProgressMonitor to use the new GLI argument based messages from the import script - which are separate from multilingual issues. This required several changes to GShell, GShellEvents, and everything that makes use of them

File:
1 edited

Legend:

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

    r6006 r6325  
    4242import org.greenstone.gatherer.cdm.CollectionDesignManager;
    4343import org.greenstone.gatherer.shell.GImportProgressMonitor;
     44import org.greenstone.gatherer.shell.GShellEvent;
    4445import org.greenstone.gatherer.shell.GShellProgressMonitor;
    4546/** This implementation of <i>GShellProgressMonitor</i> is designed to parse and translate the progress of a buildcol.pl call.
     
    150151
    151152    /** This method is used to 'feed in' a line of text captured from the process.
    152      * @param line A <strong>String</strong> of text captured from either standard out or standard error.
    153      */
    154     public void parse(String raw_line) {
    155     String line = raw_line.toLowerCase();
     153     * @param event a GShellEvent containing information from the GShell
     154     */
     155    public void process(GShellEvent event) {
     156    String line = event.getMessage().toLowerCase();
    156157    // We first check if we can parse, which depends on num_docs > 0 and num_indexes > 0.
    157158    if(num_docs > 0 && num_indexes > 0) {
Note: See TracChangeset for help on using the changeset viewer.