- Timestamp:
- 2006-01-23T15:21:56+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/FileSystemModel.java
r11082 r11083 24 24 super(root); 25 25 root.setModel(this); 26 root. map();26 root.refresh(); 27 27 } 28 28 … … 259 259 } 260 260 261 261 262 /** Invoked whenever a node in the tree is about to be expanded. */ 262 263 public void treeWillExpand(TreeExpansionEvent event) 263 throws ExpandVetoException { 264 // Set the wait cursor. 264 throws ExpandVetoException 265 { 266 // Set the wait cursor 265 267 Gatherer.g_man.wait(true); 266 // Allocate the children. Don't need to do this in a swing worker, as the nodes children are currently not visable. 268 269 // Allocate the children (don't need a swing worker since the node's children are currently not visible) 267 270 TreePath path = event.getPath(); 268 271 FileNode node = (FileNode) path.getLastPathComponent(); 269 ///ystem.err.println("Mapping: " + node); 270 node.map(); 271 ///ystem.err.println(" -> node has " + node.getChildCount() + " children"); 272 node.refresh(); 272 273 nodeStructureChanged(node); 273 // Restore the cursor. 274 275 // Restore the cursor 274 276 Gatherer.g_man.wait(false); 275 277 }
Note:
See TracChangeset
for help on using the changeset viewer.