Changeset 11446 for trunk/gli


Ignore:
Timestamp:
2006-03-21T14:59:20+12:00 (18 years ago)
Author:
kjdon
Message:

disabled rename and replace entries in collection tree right click menus for remote gli - add these back in when it works properly

File:
1 edited

Legend:

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

    r11315 r11446  
    597597
    598598        // collection tree gets rename option
     599        // but not for remote gli (until we make it work properly)
    599600        if (tree == collection_tree) {
    600         rename = new JMenuItem(Dictionary.get("CollectionPopupMenu.Rename"), KeyEvent.VK_R);
    601         rename.addActionListener(this);
    602         add(rename);
     601        if (!Gatherer.isGsdlRemote) {
     602            rename = new JMenuItem(Dictionary.get("CollectionPopupMenu.Rename"), KeyEvent.VK_R);
     603            rename.addActionListener(this);
     604            add(rename);
     605        }
    603606        }
    604607
     
    617620            }
    618621            // replace file
    619             replace = new JMenuItem(Dictionary.get("CollectionPopupMenu.Replace"), KeyEvent.VK_P);
    620             replace.addActionListener(this);
    621             add(replace);
     622            // but not for remote gli (until we make it work properly)
     623            if (!Gatherer.isGsdlRemote) {
     624            replace = new JMenuItem(Dictionary.get("CollectionPopupMenu.Replace"), KeyEvent.VK_P);
     625            replace.addActionListener(this);
     626            add(replace);
     627            }
    622628        }
    623629       
Note: See TracChangeset for help on using the changeset viewer.