- Timestamp:
- 2004-12-17T15:07:36+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/EnrichPane.java
r8813 r8846 50 50 import org.greenstone.gatherer.Dictionary; 51 51 import org.greenstone.gatherer.Gatherer; 52 import org.greenstone.gatherer.collection.Collection Manager;52 import org.greenstone.gatherer.collection.CollectionTree; 53 53 import org.greenstone.gatherer.collection.CollectionTreeNode; 54 54 import org.greenstone.gatherer.gui.tree.DragTree; … … 123 123 private JTextField table_label; 124 124 /** A reference to the collection tree. */ 125 private DragTree collection_tree;125 private CollectionTree collection_tree; 126 126 /** Provide synchronization between the collection trees in this view and the collection pane view. */ 127 127 private TreeSynchronizer collection_tree_sync = null; … … 235 235 /** Used to create, connect and layout the components to be shown on this control panel. 236 236 * @see org.greenstone.gatherer.Gatherer 237 * @see org.greenstone.gatherer.collection.CollectionManager238 237 * @see org.greenstone.gatherer.file.FileOpenActionListener 239 238 * @see org.greenstone.gatherer.gui.Filter … … 253 252 254 253 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); 262 255 group.add(collection_tree); 263 256 collection_tree.getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION); … … 456 449 // Update collection tree 457 450 if (refresh_reason == Gatherer.COLLECTION_OPENED) { 458 collection_tree.setModel(Gatherer.c_man.get RecordSet());451 collection_tree.setModel(Gatherer.c_man.getCollectionTreeModel()); 459 452 } 460 453
Note:
See TracChangeset
for help on using the changeset viewer.