Ignore:
Timestamp:
2004-12-17T15:07:36+13:00 (19 years ago)
Author:
mdewsnip
Message:

Tidied up the workspace and collection trees a bit more, in preparation for having special icons for some collection files.

File:
1 edited

Legend:

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

    r8813 r8846  
    5050import org.greenstone.gatherer.Dictionary;
    5151import org.greenstone.gatherer.Gatherer;
    52 import org.greenstone.gatherer.collection.CollectionManager;
     52import org.greenstone.gatherer.collection.CollectionTree;
    5353import org.greenstone.gatherer.collection.CollectionTreeNode;
    5454import org.greenstone.gatherer.gui.tree.DragTree;
     
    123123    private JTextField table_label;
    124124    /** A reference to the collection tree. */
    125     private DragTree collection_tree;
     125    private CollectionTree collection_tree;
    126126    /** Provide synchronization between the collection trees in this view and the collection pane view. */
    127127    private TreeSynchronizer collection_tree_sync = null;
     
    235235    /** Used to create, connect and layout the components to be shown on this control panel.
    236236     * @see org.greenstone.gatherer.Gatherer
    237      * @see org.greenstone.gatherer.collection.CollectionManager
    238237     * @see org.greenstone.gatherer.file.FileOpenActionListener
    239238     * @see org.greenstone.gatherer.gui.Filter
     
    253252
    254253    DragGroup group = new DragGroup();
    255     TreeModel collection_model = Gatherer.c_man.getRecordSet();
    256     if (collection_model != null) {
    257         collection_tree = new DragTree("Enrich", collection_model, null, false);
    258     }
    259     else {
    260         collection_tree = new DragTree("Enrich", null, false);
    261     }
     254    collection_tree = new CollectionTree("Enrich", Gatherer.c_man.getCollectionTreeModel(), false);
    262255    group.add(collection_tree);
    263256    collection_tree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
     
    456449        // Update collection tree
    457450        if (refresh_reason == Gatherer.COLLECTION_OPENED) {
    458         collection_tree.setModel(Gatherer.c_man.getRecordSet());
     451        collection_tree.setModel(Gatherer.c_man.getCollectionTreeModel());
    459452        }
    460453
Note: See TracChangeset for help on using the changeset viewer.