Changeset 13604


Ignore:
Timestamp:
2007-01-12T17:50:12+13:00 (15 years ago)
Author:
mdewsnip
Message:

Added remote Greenstone support for the "Rename" option when right-clicking on a collection file.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

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

    r13465 r13604  
    234234
    235235        // Rename option
    236         // !! TO DO: Remote building
    237         if (!Gatherer.isGsdlRemote) {
    238         rename = new JMenuItem(Dictionary.get("CollectionPopupMenu.Rename"), KeyEvent.VK_R);
    239         rename.addActionListener(this);
    240         add(rename);
    241         }
     236        rename = new JMenuItem(Dictionary.get("CollectionPopupMenu.Rename"), KeyEvent.VK_R);
     237        rename.addActionListener(this);
     238        add(rename);
    242239
    243240        TreePath path = selection_paths[0];
     
    252249            add(explode_metadata_database);
    253250        }
     251
    254252        // Replace file
    255253        // !! TO DO: Remote building
  • trunk/gli/src/org/greenstone/gatherer/file/FileManager.java

    r13586 r13604  
    389389        CollectionTreeNode new_collection_tree_node = new CollectionTreeNode(new_collection_file);
    390390        file_queue.addJob(System.currentTimeMillis(), collection_tree, new FileNode[] { collection_tree_node }, collection_tree, new_collection_tree_node, FileJob.RENAME);
     391        if (Gatherer.isGsdlRemote) {
     392            RemoteGreenstoneServer.moveCollectionFile(CollectionManager.getLoadedCollectionName(), collection_file, new_collection_file);
     393        }
    391394        }
    392395    }
Note: See TracChangeset for help on using the changeset viewer.