- Timestamp:
- 2005-02-14T11:07:52+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java
r8992 r9017 57 57 import org.greenstone.gatherer.collection.ExportCollectionPrompt; 58 58 import org.greenstone.gatherer.file.FileOpenActionListener; 59 import org.greenstone.gatherer.file.WorkspaceTree; 59 60 import org.greenstone.gatherer.gui.metaaudit.MetaAuditFrame; 60 61 import org.greenstone.gatherer.gui.tree.DragTree; … … 695 696 ncm_prompt = null; 696 697 } 698 699 697 700 private class CreationTask 698 extends Thread { 701 extends Thread 702 { 699 703 private NewCollectionDetailsPrompt ncd_prompt = null; 700 704 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 { 702 708 this.ncd_prompt = ncd_prompt; 703 709 this.ncm_prompt = ncm_prompt; 704 710 } 705 711 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) { 709 715 Gatherer.c_man.createCollection(ncd_prompt.getDescription(), Configuration.getEmail(), ncd_prompt.getName(), ncd_prompt.getTitle(), ncd_prompt.getBase(), null); 710 716 } 711 717 else { 712 718 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' property715 // 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 717 723 ncd_prompt.dispose(); 718 724 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); 723 734 } 724 735 }
Note:
See TracChangeset
for help on using the changeset viewer.