- Timestamp:
- 2004-01-09T14:58:18+13:00 (20 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/Collection.java
r6325 r6387 106 106 107 107 /** Destructor. 108 * @see org.greenstone.gatherer.collection.CollectionModel */ 108 * @see org.greenstone.gatherer.Configuration 109 * @see org.greenstone.gatherer.Gatherer 110 * @see org.greenstone.gatherer.cdm.CollectionDesignManager 111 * @see org.greenstone.gatherer.msm.GDMManager 112 * @see org.greenstone.gatherer.msm.MetadataSetManager 113 */ 109 114 public void destroy() { 110 115 cdm.destroy(); -
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r6325 r6387 147 147 * @see org.greenstone.gatherer.Configuration 148 148 * @see org.greenstone.gatherer.Gatherer 149 * @see org.greenstone.gatherer.Message150 149 * @see org.greenstone.gatherer.collection.Collection 151 150 * @see org.greenstone.gatherer.gui.BuildOptions … … 161 160 String args[]; 162 161 if(Utility.isWindows()) { 163 args = new String[ 4];162 args = new String[5]; 164 163 args[0] = Gatherer.config.perl_path; 165 164 args[1] = "-S"; 166 165 args[2] = Gatherer.config.getScriptPath() + "buildcol.pl"; 167 args[3] = collection.getName(); 166 args[3] = "-gli"; 167 args[4] = collection.getName(); 168 168 } 169 169 else { 170 args = new String[ 2];170 args = new String[3]; 171 171 args[0] = Gatherer.config.getScriptPath() + "buildcol.pl"; 172 args[1] = collection.getName(); 172 args[1] = "-gli"; 173 args[2] = collection.getName(); 173 174 } 174 175 args = ArrayTools.add(args, collection.build_options.getBuildValues()); … … 695 696 * @see org.greenstone.gatherer.Configuration 696 697 * @see org.greenstone.gatherer.Gatherer 697 * @see org.greenstone.gatherer.Message698 698 * @see org.greenstone.gatherer.gui.BuildOptions 699 699 * @see org.greenstone.gatherer.shell.GShell … … 703 703 */ 704 704 public void importCollection() { 705 Gatherer.println("CollectionManager.importCollection()");705 importing = true; 706 706 if(!saved()) { 707 Gatherer.println("CollectionManager.importCollection().forcesave"); 707 708 import_monitor.saving(); 708 709 // Force save. … … 717 718 } 718 719 else { 719 importing = true;720 Gatherer.println("CollectionManager.importCollection()"); 720 721 //check that we can remove the old index before starting import 721 722 File index_dir = new File(getCollectionIndex(), "temp.txt"); … … 767 768 shell.addGShellListener(Gatherer.g_man.create_pane); 768 769 shell.start(); 769 } 770 Gatherer.println("CollectionManager.importCollection().return"); 771 } 770 Gatherer.println("CollectionManager.importCollection().return"); 771 } 772 importing = false; 773 } 774 775 /** Determine if we are currently in the middle of importing (and thus, in this case, we can't allow the log writer to exit). Boy was this a mission to track down. The cascade of crap rolls out something like this: Joe Schmo clicks 'Build Collection', which calls the importCollection() method above, which in turn saves the collection with a saveTask, which fires a collectionChanged message once its finished, which drives the list of logs shown on the create pane to update, which fires a itemChanged() event to the OptionsPane who dutifully tells the current log writer thread to finish up writing (all zero lines its been asked to write) and then die. Wereapon Joe Schmo gets a pretty log to look at, but it isn't actually being written to file so the next time he tries to view it faeces hits the air motion cooling device. Joy. 776 * @return true if the gli is currently importing 777 */ 778 public boolean isImporting() { 779 return importing; 780 } 781 772 782 /** Attempts to load the given collection. Currently uses simple serialization of the collection class. 773 783 * @param location The path to the collection as a <strong>String</strong>. 774 784 * @see org.greenstone.gatherer.Configuration 775 785 * @see org.greenstone.gatherer.Gatherer 776 * @see org.greenstone.gatherer.Message777 786 * @see org.greenstone.gatherer.collection.Collection 778 787 * @see org.greenstone.gatherer.msm.MetadataSetManager … … 1187 1196 * @param exit_after <i>true</i> to cause the Gatherer to exit once save is complete, <i>false</i> otherwise. 1188 1197 * @see org.greenstone.gatherer.Gatherer 1189 * @see org.greenstone.gatherer.Message1190 1198 * @see org.greenstone.gatherer.gui.GUIManager 1191 1199 * @see org.greenstone.gatherer.gui.GConfigPane -
trunk/gli/src/org/greenstone/gatherer/collection/ExportCollectionPrompt.java
r6318 r6387 244 244 * @see org.greenstone.gatherer.Configuration 245 245 * @see org.greenstone.gatherer.Gatherer 246 * @see org.greenstone.gatherer.Message247 246 * @see org.greenstone.gatherer.collection.Collection 248 247 * @see org.greenstone.gatherer.gui.BuildOptions -
trunk/gli/src/org/greenstone/gatherer/file/FileOpenActionListener.java
r6261 r6387 60 60 * @param event A <strong>MouseEvent</strong> containing further information about the mouse click performed. 61 61 * @see org.greenstone.gatherer.Gatherer 62 * @see org.greenstone.gatherer. collection.FileRecord63 * @see org.greenstone.gatherer. tree.GTree62 * @see org.greenstone.gatherer.file.FileNode 63 * @see org.greenstone.gatherer.gui.tree.DragTree 64 64 */ 65 65 public void mouseClicked(MouseEvent event) { -
trunk/gli/src/org/greenstone/gatherer/util/DragGroup.java
r5581 r6387 68 68 /** The component currently in charge of drawing the ghost icon. Note that this isn't necessarily the only component that needs to repaint 'spoilt' screen real-estate as a side effect of the ghost. */ 69 69 private DragComponent ghost_owner = null; 70 /** The component where the drag began, so that extra information necessary for the drag can be garnered by the drop target, or so that focus can return to the source component if the drop is rejected. 71 * @see org.greenstone.gatherer.tree.DragComponent#gainFocus 72 * @see org.greenstone.gatherer.tree.DragComponent#loseFocus 73 */ 70 /** The component where the drag began, so that extra information necessary for the drag can be garnered by the drop target, or so that focus can return to the source component if the drop is rejected. */ 74 71 private DragTree drag_source = null; 75 72 /** The selected nodes, as determined when the drag begun. */
Note:
See TracChangeset
for help on using the changeset viewer.