- Timestamp:
- 2003-06-11T15:52:43+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/SuperCollectionManager.java
r4495 r4573 45 45 static final public String CCS_COMMAND = "ccs"; 46 46 47 private String current_coll_name = null; 47 48 private Control controls; 48 49 private ArrayList collection_checklist_model; … … 52 53 collection_checklist_model = new ArrayList(); 53 54 File gsdl_collection_directory = new File(Utility.getCollectionDir(Gatherer.config.gsdl_path)); 55 current_coll_name = Gatherer.c_man.getCollection().getName(); 54 56 File[] possible_collections = gsdl_collection_directory.listFiles(); 55 57 for(int i = 0; possible_collections != null && i < possible_collections.length; i++) { 58 if (possible_collections[i].getName().equals(current_coll_name)) { 59 // we dont want to add the current collection to the list 60 continue; 61 } 56 62 // The simpliest case is if the directory etc/collect.cfg file and a metadata/ in it. Thus it can easily be built upon. 57 63 File collect_cfg_file = new File(possible_collections[i], Utility.CONFIG_DIR); … … 135 141 entry = null; 136 142 } 137 command.append("\n");138 command.append("\n");139 143 // It is possible that there were no entries in which case we return null. 140 144 if(found_entry) { 145 // we need to add on the current collection 146 command.append(" "); 147 command.append(current_coll_name); 148 command.append("\n"); 149 command.append("\n"); 141 150 return command.toString(); 142 151 } … … 183 192 184 193 CheckList collection_checklist = new CheckList(collection_checklist_model); 185 186 194 // Layout 187 195 //center_pane.setTopComponent(new JScrollPane(instructions));
Note:
See TracChangeset
for help on using the changeset viewer.