Changeset 7164


Ignore:
Timestamp:
2004-03-31T10:19:08+12:00 (20 years ago)
Author:
kjdon
Message:

fixed the assigned metadata menu item not workign bug, realigned some comments and changed a shortcut key

File:
1 edited

Legend:

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

    r7151 r7164  
    990990        // Any folder node gets a menu item allowing you to collapse or expand it depending on its current status
    991991        if (!node.isLeaf()) {
    992                 // Collapse
     992        // Collapse
    993993        if (collection_tree.isExpanded(path)) {
    994994            collapse_expand_folder_menuitem = new JMenuItem(Dictionary.get("Menu.Collapse"), KeyEvent.VK_C);
    995995        }
    996                 // Expand
     996        // Expand
    997997        else {
    998998            collapse_expand_folder_menuitem = new JMenuItem(Dictionary.get("Menu.Expand"), KeyEvent.VK_O);
     
    10031003        String[] args = new String[1];
    10041004        args[0] = collection_tree.getSelectionDetails();
    1005         show_metaaudit = new JMenuItem(Dictionary.get("Menu.Metadata_View", args), KeyEvent.VK_V);
     1005        show_metaaudit = new JMenuItem(Dictionary.get("Menu.Metadata_View", args), KeyEvent.VK_A);
    10061006        show_metaaudit.addActionListener(this);
    10071007        add(show_metaaudit);
    10081008        // Display
    10091009        show(collection_tree, event.getX(), event.getY());
    1010         show_metaaudit = null;
    10111010    }
    10121011
     
    10221021        }
    10231022        else if (source == collapse_expand_folder_menuitem && path != null && node != null && !node.isLeaf()) {
    1024                 // Collapse
     1023        // Collapse
    10251024        if (collection_tree.isExpanded(path)) {
    10261025            collection_tree.collapsePath(path);
    10271026        }
    1028                 // Expand
     1027        // Expand
    10291028        else {
    10301029            collection_tree.expandPath(path);
Note: See TracChangeset for help on using the changeset viewer.