Changeset 4616


Ignore:
Timestamp:
2003-06-12T17:19:37+12:00 (21 years ago)
Author:
jmt12
Message:

2030120: Changed to use the new DragTree with the ability to set whether the selection model allows mixed selections, i.e. both files and folders.

Location:
trunk/gli/src/org/greenstone/gatherer/gui
Files:
3 edited

Legend:

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

    r4609 r4616  
    267267
    268268    workspace = Gatherer.c_man.getWorkspace();
    269     workspace_tree = new DragTree(Utility.WORKSPACE_TREE, workspace, null);
     269    workspace_tree = new DragTree(Utility.WORKSPACE_TREE, workspace, null, true);
    270270    group.add(workspace_tree);
    271271    workspace_tree.addFocusListener(this);
     
    307307    collection = Gatherer.c_man.getRecordSet();
    308308    if(collection != null) {
    309         collection_tree = new DragTree(Utility.COLLECTION_TREE, collection, null);
     309        collection_tree = new DragTree(Utility.COLLECTION_TREE, collection, null, true);
    310310        collection_tree.setEnabled(true);
    311311    }
    312312    else {
    313         collection_tree = new DragTree(Utility.COLLECTION_TREE, null);
     313        collection_tree = new DragTree(Utility.COLLECTION_TREE, null, true);
    314314        collection_tree.setEnabled(false);
    315315    }
  • trunk/gli/src/org/greenstone/gatherer/gui/MetaEditPane.java

    r4606 r4616  
    381381    TreeModel collection_model = Gatherer.c_man.getRecordSet();
    382382    if(collection_model != null) {
    383         collection_tree = new DragTree("MetaEdit", collection_model, null);
     383        collection_tree = new DragTree("MetaEdit", collection_model, null, false);
    384384        collection_model.addTreeModelListener(this);
    385385    }
    386386    else {
    387         collection_tree = new DragTree("MetaEdit", null);
     387        collection_tree = new DragTree("MetaEdit", null, false);
    388388    }
    389389    group.add(collection_tree);
  • trunk/gli/src/org/greenstone/gatherer/gui/MirrorPane.java

    r4367 r4616  
    183183    //Gatherer.println("\tCreating public tree");
    184184    model = (FileSystemModel) Gatherer.c_man.getWorkspace();
    185     workspace_tree = new DragTree("Workspace_Mirror", model, null);
     185    workspace_tree = new DragTree("Workspace_Mirror", model, null, true);
    186186    workspace_tree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
    187187    workspace_tree.putClientProperty("JTree.lineStyle", "Angled");
Note: See TracChangeset for help on using the changeset viewer.