Changeset 7493
- Timestamp:
- 2004-05-28T16:57:00+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/GatherPane.java
r7485 r7493 562 562 private void buildContextMenu(TreePath[] selection_paths) 563 563 { 564 // If nothing is selected, only the new folder option is available 564 // If nothing is selected, only the new folder option is available... 565 565 if (selection_paths == null) { 566 new_folder = new JMenuItem(Dictionary.get("CollectionPopupMenu.New_Folder"), KeyEvent.VK_N); 567 new_folder.addActionListener(this); 568 add(new_folder); 569 570 node = (FileNode) tree.getModel().getRoot(); 566 // ... but only in the collection tree! 567 if (tree == collection_tree) { 568 new_folder = new JMenuItem(Dictionary.get("CollectionPopupMenu.New_Folder"), KeyEvent.VK_N); 569 new_folder.addActionListener(this); 570 add(new_folder); 571 572 node = (FileNode) tree.getModel().getRoot(); 573 } 574 571 575 return; 572 576 }
Note:
See TracChangeset
for help on using the changeset viewer.