Changeset 22342


Ignore:
Timestamp:
2010-07-02T16:41:47+12:00 (14 years ago)
Author:
sjm84
Message:

An error message is now displayed if you try to create a shortcut of a folder that does not exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/file/WorkspaceTree.java

    r18593 r22342  
    358358        // Create shortcut
    359359        if (source == create_shortcut) {
     360        //Make sure the file exists
     361        if(!node.getFile().exists()){
     362        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("FileActions.Folder_Does_Not_Exist"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
     363        return;
     364        }
    360365        CreateShortcutPrompt csp = new CreateShortcutPrompt(workspace_tree, node.getFile());
    361366        csp.destroy();
Note: See TracChangeset for help on using the changeset viewer.