Ignore:
Timestamp:
2005-02-14T11:07:52+13:00 (19 years ago)
Author:
mdewsnip
Message:

Moved some GUI stuff out of CollectionManager and into GUIManager.

File:
1 edited

Legend:

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

    r8992 r9017  
    5757import org.greenstone.gatherer.collection.ExportCollectionPrompt;
    5858import org.greenstone.gatherer.file.FileOpenActionListener;
     59import org.greenstone.gatherer.file.WorkspaceTree;
    5960import org.greenstone.gatherer.gui.metaaudit.MetaAuditFrame;
    6061import org.greenstone.gatherer.gui.tree.DragTree;
     
    695696    ncm_prompt = null;
    696697    }
     698
     699
    697700    private class CreationTask
    698         extends Thread {
     701        extends Thread
     702    {
    699703    private NewCollectionDetailsPrompt ncd_prompt = null;
    700704    private NewCollectionMetadataPrompt ncm_prompt = null;
    701     public CreationTask(NewCollectionDetailsPrompt ncd_prompt, NewCollectionMetadataPrompt ncm_prompt) {
     705
     706    public CreationTask(NewCollectionDetailsPrompt ncd_prompt, NewCollectionMetadataPrompt ncm_prompt)
     707    {
    702708        this.ncd_prompt = ncd_prompt;
    703709        this.ncm_prompt = ncm_prompt;
    704710    }
    705711
    706     public void run() {
    707         ///ystem.err.println("Running CreationTask...");
    708         if(ncm_prompt == null) {
     712    public void run()
     713    {
     714        if (ncm_prompt == null) {
    709715        Gatherer.c_man.createCollection(ncd_prompt.getDescription(), Configuration.getEmail(), ncd_prompt.getName(), ncd_prompt.getTitle(), ncd_prompt.getBase(), null);
    710716        }
    711717        else {
    712718        Gatherer.c_man.createCollection(ncd_prompt.getDescription(), Configuration.getEmail(), ncd_prompt.getName(), ncd_prompt.getTitle(), null, ncm_prompt.getSets());
    713         }
    714         // Now that the collection specific settings are loaded we can set the 'view extracted metadata' property
    715         // do we want to have this in here???
    716         //Configuration.set("general.view_extracted_metadata", Configuration.COLLECTION_SPECIFIC, true);
     719        ncm_prompt.dispose();
     720        ncm_prompt = null;
     721        }
     722
    717723        ncd_prompt.dispose();
    718724        ncd_prompt = null;
    719         if(ncm_prompt != null) {
    720         ncm_prompt.dispose();
    721         ncm_prompt = null;
    722         }
     725
     726        // Return to some initial pane (Gather)
     727        returnToInitialPane();
     728
     729        // Refresh the workspace tree to allow for the new collection
     730        refreshWorkspaceTree(WorkspaceTree.LIBRARY_CONTENTS_CHANGED);
     731
     732        // Refresh the rest of the GLI
     733        Gatherer.refresh(Gatherer.COLLECTION_OPENED);
    723734    }
    724735    }
Note: See TracChangeset for help on using the changeset viewer.