Changeset 9113
- Timestamp:
- 2005-02-18T16:08:46+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/GatherPane.java
r9108 r9113 481 481 private JMenuItem metaaudit = null; 482 482 private JMenuItem new_folder = null; 483 private JMenuItem new_dummy_doc = null; 483 484 private JMenuItem open_externally = null; 484 485 … … 553 554 private void buildContextMenu(TreePath[] selection_paths) 554 555 { 555 // If nothing is selected, only the new folder option isavailable...556 // If nothing is selected, only the new folder/dummy doc options are available... 556 557 if (selection_paths == null) { 557 558 // ... but only in the collection tree! … … 560 561 new_folder.addActionListener(this); 561 562 add(new_folder); 563 564 new_dummy_doc = new JMenuItem(Dictionary.get("CollectionPopupMenu.New_Dummy_Doc")); 565 new_dummy_doc.addActionListener(this); 566 add(new_dummy_doc); 562 567 563 568 node = (CollectionTreeNode) tree.getModel().getRoot(); … … 620 625 } 621 626 622 // New folder option, for collection tree only627 // New folder/dummy doc options, for collection tree only 623 628 if (tree == collection_tree && !node.isReadOnly()) { 624 629 new_folder = new JMenuItem(Dictionary.get("CollectionPopupMenu.New_Folder"), KeyEvent.VK_N); 625 630 new_folder.addActionListener(this); 626 631 add(new_folder); 632 new_dummy_doc = new JMenuItem(Dictionary.get("CollectionPopupMenu.New_Dummy_Doc")); 633 new_dummy_doc.addActionListener(this); 634 add(new_dummy_doc); 627 635 } 628 636 … … 705 713 Gatherer.f_man.newFolder(tree, (CollectionTreeNode) node); 706 714 } 707 715 // New dummy doc 716 else if (source == new_dummy_doc) { 717 Gatherer.f_man.newDummyDoc(tree, (CollectionTreeNode) node); 718 } 708 719 // Open in external program 709 720 else if (source == open_externally) {
Note:
See TracChangeset
for help on using the changeset viewer.