Changeset 7091


Ignore:
Timestamp:
2004-03-17T16:18:03+13:00 (20 years ago)
Author:
kjdon
Message:

destroy the AppendLineOnlyFileDocument beloonging to the log_textarea when we change collections so that the old log is not displayed in the new collection

File:
1 edited

Legend:

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

    r7088 r7091  
    310310     */
    311311    public void collectionChanged(boolean ready) {
    312     ///ystem.err.println("Collection changed... ");
    313312    if(Gatherer.c_man == null || !ready) {
    314313        return;
     
    317316    if (current_collection != previous_collection && !Gatherer.c_man.isImporting()) {
    318317        this.options_pane = new OptionsPane(current_collection.build_options);
     318        if (previous_collection != null) {
     319        // clear the log
     320        ((AppendLineOnlyFileDocument)log_textarea.getDocument()).destroy();
     321        }
    319322        previous_collection = current_collection;
    320     }
     323       
     324    }
    321325    // If we are in simple mode, we have to rebuild the simple arguments list
    322326    if(Gatherer.config.getMode() < THRESHOLD) {
Note: See TracChangeset for help on using the changeset viewer.