Changeset 4851
- Timestamp:
- 2003-07-02T13:27:45+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/FileNode.java
r4800 r4851 200 200 /** Adds child to the receiver at index. */ 201 201 public void insert(MutableTreeNode child, int index) { 202 ///ystem.err.println("Insert " + child + " in " + this + " at index " + index );202 ///ystem.err.println("Insert " + child + " in " + this + " at index " + index + " [Model: " + model + "]"); 203 203 //map(); 204 204 try { 205 205 children.add(index, child); 206 206 // Set parent and model. 207 207 FileNode new_child = (FileNode) child; 208 208 new_child.setModel(model); … … 254 254 FileNode collection_root = new FileNode(import_dir, cols[i].getName(), true); 255 255 collection_root.setParent(this); 256 collection_root.setModel(model); 256 257 children.add(collection_root); 257 258 collection_root = null; … … 270 271 ArrayTools tools = new ArrayTools(); 271 272 // Apply the filters set in the model. 273 //if(model != null) { 272 274 FileFilter[] filters = model.getFilters(); 273 275 for(int i = 0; filters != null && i < filters.length; i++) { 274 276 files = tools.filter(files, filters[i].filter, filters[i].exclude); 275 277 } 278 //} 276 279 // If this node just happens to be the greenstone collection directory 277 280 if(Gatherer.c_man != null && Gatherer.c_man.ready() && file.equals(new File(Utility.getCollectionDir(Gatherer.config.gsdl_path)))) {
Note:
See TracChangeset
for help on using the changeset viewer.