contextMenu.addItem("<span>" + images.folderNew().getHTML() + " New Folder</span>", true, new NewFolderCommand(this, images));\r
contextMenu.addItem("<span>" + images.fileNew().getHTML() + " New File</span>", true, new UploadFileCommand(this));\r
contextMenu .addItem("<span>" + images.fileUpdate().getHTML() + " Update</span>", true, new UpdateFileCommand(this))\r
- .setVisible(!propertiesNotVisible);\r
+ .setVisible(!propertiesNotVisible && downloadVisible);\r
contextMenu .addItem("<span>" + images.viewText().getHTML() + " Properties</span>", true, new PropertiesCommand(this, images))\r
.setVisible(!propertiesNotVisible);\r
contextMenu.addItem("<span>" + images.emptyTrash().getHTML() + " Empty Trash</span>", true, new EmptyTrashCommand(this));\r
if (downloadVisible) {\r
-\r
String[] link = {"", ""};\r
createDownloadLink(link);\r
contextMenu.addItem("<span>" + link[0] + images.download().getHTML() + " Download File" + link[1] + "</span>", true, downloadCmd);\r
-\r
}\r
return contextMenu;\r
}\r