Changeset 7208
- Timestamp:
- 2004-04-20T10:18:21+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/FileSystemModel.java
r6991 r7208 122 122 public void refresh(TreePath path) 123 123 { 124 // Can only refresh if the model is currently being displayed in a tree 125 if (tree == null) { 126 return; 127 } 128 124 129 // If no path is set, take the path to the root node (ie. update the whole tree) 125 130 if (path == null) { 126 131 // System.err.println("\nFileSystemModel.refresh(entire tree)."); 127 132 path = new TreePath(((FileNode) root).getPath()); 133 134 // Make sure the root node is expanded 135 tree.expandPath(path); 128 136 } 129 137 // else { 130 138 // System.err.println("\nFileSystemModel.refresh(" + path + ")."); 131 139 // } 132 133 // Can only refresh if the model is currently being displayed in a tree134 if (tree == null) {135 return;136 }137 140 138 141 // Record all the expanded paths under this node
Note:
See TracChangeset
for help on using the changeset viewer.