Changeset 7203


Ignore:
Timestamp:
2004-04-19T12:25:36+12:00 (20 years ago)
Author:
mdewsnip
Message:

Fixed another bug with file tree refreshing when the filter was changed. This only affected Windows machines for some reason, and only affected the "Local Filespace" tree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/WorkspaceTreeModel.java

    r7011 r7203  
    1414    static private WorkspaceTreeModel workspace_tree_model = null;
    1515    static private FileNode greenstone_collections_mapping = null;
     16    static private FileNode local_filespace_mapping = null;
    1617    static private FileNode web_cache_mapping = null;
    1718    static private FileNode[] collection_specific_mappings = null;
     
    3536
    3637    // Add the local filespace
    37     workspace_tree_root.insert(FileSystem.getLocalFileSystem(workspace_tree_model));
     38    local_filespace_mapping = FileSystem.getLocalFileSystem(workspace_tree_model);
     39    workspace_tree_root.insert(local_filespace_mapping);
    3840
    3941    // Add a mapping to the user home folder
     
    123125        super.refresh(new TreePath(child_node.getPath()));
    124126    }
     127
     128    // Refresh the local filespace tree specially (it is not unmapped so not refreshed)
     129    for (int i = 0; i < local_filespace_mapping.getChildCount(); i++) {
     130        FileNode child_node = (FileNode) local_filespace_mapping.getChildAt(i);
     131        super.refresh(new TreePath(child_node.getPath()));
     132    }
    125133    }
    126134}
Note: See TracChangeset for help on using the changeset viewer.