Ignore:
Timestamp:
2003-11-16T17:50:12+13:00 (21 years ago)
Author:
mdewsnip
Message:

More improvements to smart workspace tree refreshing. Library contents changes (eg. deleting collections) now refreshes the collect directory nicely.

File:
1 edited

Legend:

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

    r5847 r5854  
    1111    static private FileNode workspace_tree_root = null;
    1212    static private WorkspaceTreeModel workspace_tree_model = null;
     13    static private FileNode greenstone_collections_mapping = null;
    1314    static private FileNode[] collection_specific_mappings = null;
    1415
     
    2728
    2829    // Add the Greenstone Collections mapping
    29     workspace_tree_root.insert(CollectionManager.getGreenstoneCollectionsMapping());
     30    greenstone_collections_mapping = CollectionManager.getGreenstoneCollectionsMapping();
     31    workspace_tree_root.insert(greenstone_collections_mapping);
    3032
    3133    // Add the local filespace
     
    6163
    6264
     65    static public void refreshGreenstoneCollectionsMapping()
     66    {
     67    greenstone_collections_mapping.unmap();
     68    greenstone_collections_mapping.map();
     69    }
     70
     71
    6372    static public void refreshCollectionSpecificMappings()
    6473    {
Note: See TracChangeset for help on using the changeset viewer.