Ignore:
Timestamp:
2008-06-04T18:05:12+12:00 (16 years ago)
Author:
ak19
Message:

Reverted to older version since my changes to make the blocky chars during logging go away cause an Exception when run immediately after GLI is compiled. When I have tracked the cause down and have corrected it, I will commit that into the working version. I don't want the currently buggy version in the repository.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/gui/CreatePane.java

    r15621 r15862  
    606606    }
    607607
    608     /** This class serves as the listener for actions on the build button. It also ensures
    609      * that the log displayed is refreshed whenever the building progress display updates. */
     608    /** This class serves as the listener for actions on the build button. */
    610609    private class BuildButtonListener
    611     implements ActionListener, DocumentListener {
     610    implements ActionListener {
    612611    /**
    613612     * This method checks to see what needs to be done for a build, and starts the process off.
     
    677676        document = options_pane.createNewLogDocument();
    678677        log_textarea.setDocument(document);
    679         // Add a document listener to listen to DocumentEvents emitted by the custom document.
    680         // It prevents the blocks that appear in the log textarea that look like they need a refresh
    681         document.addDocumentListener(this);
    682678        options_pane.log_textarea.setDocument(document);
    683679        // Change the view.
     
    691687        import_monitor.setStop(false);
    692688    }
    693        
    694 
    695     // Called whenever the custom Document object has been updated (it then fires a DocumentEvent, handled here)
    696     public void changedUpdate(DocumentEvent e) { refreshLog(); }
    697     public void insertUpdate(DocumentEvent e) { refreshLog(); }
    698     public void removeUpdate(DocumentEvent e) { refreshLog(); }
    699     public void refreshLog() { CreatePane.this.log_textarea.repaint(); }
    700     }
     689    }
     690   
    701691   
    702692    /** This class serves as the listener for actions on the cancel button. */
Note: See TracChangeset for help on using the changeset viewer.