Changeset 13460


Ignore:
Timestamp:
2006-12-08T11:09:34+13:00 (17 years ago)
Author:
mdewsnip
Message:

Moved the exploding onto a new thread (for remote building) and used the Gatherer.g_man.wait() function to disable/enable the interface.

File:
1 edited

Legend:

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

    r13455 r13460  
    304304   
    305305    public void actionPerformed(ActionEvent event) {
     306        Gatherer.g_man.wait(true);
    306307        // update the options
    307308        updateScriptOptions();
     309        self.dispose(); 
     310        (new ExplodeMetadataDatabaseTask()).start();
     311    }
     312    }
     313
     314
     315    private class ExplodeMetadataDatabaseTask
     316    extends Thread
     317    {
     318    public ExplodeMetadataDatabaseTask()
     319    {
     320    }
     321
     322    public void run()
     323    {
    308324        int exit_value = explodeMetadata();
     325        Gatherer.g_man.wait(false);
    309326        if (exit_value == 0) { // success
    310327        // Load the new metadata.xml files
     
    316333        }
    317334        error_message = null;
    318         self.dispose(); 
    319     }
    320     }
     335    }
     336    }   
    321337}
Note: See TracChangeset for help on using the changeset viewer.