- Timestamp:
- 2004-05-28T16:47:01+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/WorkspaceTreeModel.java
r7484 r7491 56 56 static public void refreshGreenstoneCollectionsMapping() 57 57 { 58 greenstone_collections_mapping.unmap(); 59 greenstone_collections_mapping.map(); 58 greenstone_collections_mapping.refresh(); 60 59 } 61 60 … … 90 89 91 90 92 public void refresh(TreePath path)93 {94 // If we're not refreshing the whole tree just refresh a certain path95 if (path != null) {96 super.refresh(path);97 }98 99 // Refresh each of the nodes in the workspace tree100 for (int i = 0; i < workspace_tree_root.getChildCount(); i++) {101 FileNode child_node = (FileNode) workspace_tree_root.getChildAt(i);102 super.refresh(new TreePath(child_node.getPath()));103 }104 105 // Refresh the local filespace tree specially (it is not unmapped so not refreshed)106 for (int i = 0; i < local_filespace_mapping.getChildCount(); i++) {107 FileNode child_node = (FileNode) local_filespace_mapping.getChildAt(i);108 super.refresh(new TreePath(child_node.getPath()));109 }110 }111 112 113 91 static private boolean doesArrayContain(Object[] array, Object item) 114 92 {
Note:
See TracChangeset
for help on using the changeset viewer.