trashItem = new MenuItem("<span>" + newImages.emptyTrash().getHTML() + " Move to Trash</span>", true, new ToTrashCommand(this));
deleteItem = new MenuItem("<span>" + newImages.delete().getHTML() + " Delete</span>", true, new DeleteCommand(this, images));
- contextMenu.addItem(cutItem);
- contextMenu.addItem(copyItem);
contextMenu.addItem(updateItem);
-
- contextMenu.addItem(propItem);
- contextMenu.addItem(trashItem);
- contextMenu.addItem(deleteItem);
String[] link = {"", ""};
GSS.get().getTopPanel().getFileMenu().createDownloadLink(link);
downloadItem = new MenuItem("<span>" + link[0] + newImages.download().getHTML() + " Download" + link[1] + "</span>", true, downloadCmd);
contextMenu.addItem(downloadItem);
+ contextMenu.addItem(cutItem);
+ contextMenu.addItem(copyItem);
+ contextMenu.addItem(trashItem);
+ contextMenu.addItem(deleteItem);
+ contextMenu.addItem(propItem);
}
boolean propertiesNotVisible = selectedItem != null && (folders.isTrash(selectedItem) || folders.isMyShares(selectedItem) || folders.isOthersShared(selectedItem) || selectedItem.getUserObject() instanceof GroupUserResource);\r
contextMenu.addItem("<span>" + images.folderNew().getHTML() + " New Folder</span>", true, new NewFolderCommand(this, images));\r
contextMenu.addItem("<span>" + images.fileNew().getHTML() + " Upload</span>", true, new UploadFileCommand(this, images));\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
String[] link = {"", ""};\r
createDownloadLink(link);\r
contextMenu.addItem("<span>" + link[0] + images.download().getHTML() + " Download" + link[1] + "</span>", true, downloadCmd);\r
}\r
+ contextMenu.addItem("<span>" + images.emptyTrash().getHTML() + " Empty Trash</span>", true, new EmptyTrashCommand(this));\r
+ contextMenu .addItem("<span>" + images.viewText().getHTML() + " Properties</span>", true, new PropertiesCommand(this, images))\r
+ .setVisible(!propertiesNotVisible);\r
return contextMenu;\r
}\r
\r