Changeset 22342

Show
Ignore:
Timestamp:
02.07.2010 16:41:47 (10 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

Files:
1 modified

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();