Ignore:
Timestamp:
2003-11-14T15:03:33+13:00 (21 years ago)
Author:
mdewsnip
Message:

A much improved workspace tree that only refreshes when it really needs to (and only refreshes what it really needs to). This should prevent the five second plus refreshes on slow machines.

I'm planning to tidy up the collection tree in a similar way, when I get time.

Location:
trunk/gli/src/org/greenstone/gatherer/gui/tree
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTree.java

    r5593 r5847  
    5454    static private final int AUTOSCROLL_MARGIN = 12;
    5555
     56    static public int COLLECTION_CHANGED          = 1;
     57    static public int COLLECTION_CONTENTS_CHANGED = 2;
     58    static public int TREE_DISPLAY_CHANGED        = 3;
     59
     60
    5661    public DragTree(String name, String background_name, boolean mixed_selection) {
    5762    super();
     
    452457
    453458    public void refresh(TreePath path) {
    454     ((FileSystemModel)treeModel).refresh(path);
     459    if (treeModel instanceof FileSystemModel) {
     460        ((FileSystemModel)treeModel).refresh(path);
     461    }
     462    else {
     463        // System.err.println("DragTree::refresh - Tree model is " + treeModel);
     464    }
    455465    }
    456466
Note: See TracChangeset for help on using the changeset viewer.