Ignore:
Timestamp:
2009-03-06T13:02:10+13:00 (15 years ago)
Author:
ak19
Message:

For remote GLI, the book says replace and rename are to be greyed out. Note that the Replace SrcDoc with Html (for the doc types that support this) is a different option and will be available on rightclick in the remote GS case as well as the local one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/collection/CollectionTree.java

    r18630 r18631  
    294294        rename.addActionListener(this);
    295295        add(rename);
     296        if(Gatherer.isGsdlRemote) {
     297        rename.setEnabled(false);
     298        }
    296299
    297300        TreePath path = selection_paths[0];
     
    309312        // Replace file
    310313        // !! TO DO: Remote building
    311         if (!Gatherer.isGsdlRemote) {
    312             replace = new JMenuItem(Dictionary.get("CollectionPopupMenu.Replace"), KeyEvent.VK_P);
    313             replace.addActionListener(this);
    314             add(replace);
    315         }
    316        
     314        replace = new JMenuItem(Dictionary.get("CollectionPopupMenu.Replace"), KeyEvent.VK_P);
     315        replace.addActionListener(this);
     316        add(replace);
     317        if (Gatherer.isGsdlRemote) {
     318            replace.setEnabled(false);
     319        }       
    317320        // Open the file in an external program
    318321        open_externally = new JMenuItem(Dictionary.get("Menu.Open_Externally"), KeyEvent.VK_O);
Note: See TracChangeset for help on using the changeset viewer.