Ignore:
Timestamp:
2004-05-28T16:47:01+12:00 (20 years ago)
Author:
mdewsnip
Message:

Even more improvements to the workspace and collection trees. These are now hugely improved -- with refreshing being much quicker and much more reliable.

File:
1 edited

Legend:

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

    r7484 r7491  
    5656    static public void refreshGreenstoneCollectionsMapping()
    5757    {
    58     greenstone_collections_mapping.unmap();
    59     greenstone_collections_mapping.map();
     58    greenstone_collections_mapping.refresh();
    6059    }
    6160
     
    9089
    9190
    92     public void refresh(TreePath path)
    93     {
    94     // If we're not refreshing the whole tree just refresh a certain path
    95     if (path != null) {
    96         super.refresh(path);
    97     }
    98 
    99     // Refresh each of the nodes in the workspace tree
    100     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 
    11391    static private boolean doesArrayContain(Object[] array, Object item)
    11492    {
Note: See TracChangeset for help on using the changeset viewer.