- Timestamp:
- 2003-06-09T11:50:47+12:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r4446 r4513 245 245 } 246 246 247 247 // Before we create the CollectionDesignManager we have to check if we are basing it upon some other collection. 248 248 if(base_collection_directory != null) { 249 249 // If so our first step is to correctly generate an import profile for our collection from this base collection. … … 270 270 special_case = SPECIAL_DLS; 271 271 String demo_directory = (new File(base_collection_directory.getParentFile(), Utility.COLLECTION_DEMO_DIRECTORY)).getAbsolutePath(); 272 System.err.println("Demo directory = " + demo_directory); 272 273 String dls_directory = (new File(base_collection_directory.getParentFile(), Utility.COLLECTION_DLS_DIRECTORY)).getAbsolutePath(); 274 System.err.println("DLS directory = " + dls_directory); 273 275 // Add the dls.mds 274 276 collection.msm.importMDS(new File(Utility.METADATA_DIR + Utility.DLS_MDS), false); … … 589 591 // We add their import and gimport directories, but only if its not our current collection. 590 592 for(int i = 0; cols != null && i < cols.length; i++) { 591 if(collection == null || !current_collection_directory.equals(cols[i].getAbsolutePath())) { 593 ///ystem.err.println(current_collection_directory); 594 ///ystem.err.println(cols[i].getName() + " = modelcol"); 595 if(collection == null || (!current_collection_directory.equals(cols[i].getAbsolutePath()) && !cols[i].getName().equals("modelcol"))) { 592 596 File dirs[] = cols[i].listFiles(); 593 597 ArrayTools.sort(dirs); … … 1117 1121 String collection_path = (base_cfg.getParentFile().getParentFile()).getAbsolutePath(); 1118 1122 1123 System.err.println("Searching for " + collection_path); 1119 1124 HashMap mappings = collection.msm.profiler.getActions(collection_path); 1125 if(mappings == null) { 1126 System.err.println("How is this happening?"); 1127 } 1120 1128 1121 1129 // Now read in base_cfg line by line, parsing important onces and/or replacing them with information pertinent to our collection. Each line is then written back out to the new collect.cfg file. -
trunk/gli/src/org/greenstone/gatherer/file/FileNode.java
r4398 r4513 245 245 files = tools.filter(files, filters[i].filter, filters[i].exclude); 246 246 } 247 // If this node just happens to be the greenstone collection 247 // If this node just happens to be the greenstone collection directory 248 248 if(Gatherer.c_man != null && Gatherer.c_man.ready() && file.equals(new File(Utility.getCollectionDir(Gatherer.config.gsdl_path)))) { 249 249 // Preclude the directory of any open collection 250 250 String collection_name = Gatherer.c_man.getCollection().getName(); 251 for(int j = 0; collection_name != null && j < files.length; j++) { 252 if(files[j].getName().equals(collection_name)) { 251 for(int j = 0; j < files.length; j++) { 252 System.err.println("Does " + files[j].getName() + " equal " + collection_name + "?"); 253 if(files[j].getName().equals(collection_name) || files[j].getName().equals("modelcol")) { 253 254 // Remove the offending directory 254 255 files = ArrayTools.remove(files, j); 255 collection_name = null; // Only have to do this once.256 256 } 257 257 } -
trunk/gli/src/org/greenstone/gatherer/gui/WarningDialog.java
r4367 r4513 98 98 ///ystem.err.println("Show " + full_property + ": " + Gatherer.config.get(full_property, false)); 99 99 if(Gatherer.config.get(full_property, false)) { 100 100 // We only show if the warning has not been disabled. 101 101 show(); 102 102 } -
trunk/gli/src/org/greenstone/gatherer/valuetree/GValueModel.java
r4405 r4513 112 112 value_node = new GValueNode(new_subject); 113 113 // Insert it. If position is still -1, append it to the end of subjects children. 114 SynchronizedTreeModelTools.insertNodeInto(this, subject, value_node); 114 //SynchronizedTreeModelTools.insertNodeInto(this, subject, value_node); 115 insertNodeInto(value_node, subject, 0); 115 116 // Inform listeners that we've changed. 116 117 Gatherer.c_man.getCollection().msm.fireValueChanged(element, null, this); … … 190 191 191 192 public void removeValue(GValueNode child) { 192 SynchronizedTreeModelTools.removeNodeFromParent(this, child); 193 //SynchronizedTreeModelTools.removeNodeFromParent(this, child); 194 removeNodeFromParent(child); 193 195 Gatherer.c_man.getCollection().msm.fireValueChanged(new ElementWrapper(child.getElement()), null, this); 194 196 }
Note:
See TracChangeset
for help on using the changeset viewer.