Revision 3586ad5e src/gr/grnet/pithos/web/client/FileContextMenu.java
b/src/gr/grnet/pithos/web/client/FileContextMenu.java | ||
---|---|---|
216 | 216 |
MenuItem upload = new MenuItem("<span>" + AbstractImagePrototype.create(images.fileUpdate()).getHTML() + " Upload</span>", true, new UploadFileCommand(app, this, selectedFolder)); |
217 | 217 |
contextMenu.addItem(upload); |
218 | 218 |
} |
219 |
if (isFolderTreeSelected) { |
|
219 |
if (isFolderTreeSelected || isMysharedSelected) {
|
|
220 | 220 |
cutItem = new MenuItem("<span id='fileContextMenu.cut'>" + AbstractImagePrototype.create(newImages.cut()).getHTML() + " Cut</span>", true, new CutCommand(app, this, selectedFiles)); |
221 | 221 |
contextMenu.addItem(cutItem); |
222 | 222 |
} |
223 | 223 |
|
224 |
copyItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.copy()).getHTML() + " Copy</span>", true, new CopyCommand(app, this, selectedFiles)); |
|
225 |
contextMenu.addItem(copyItem); |
|
224 | 226 |
|
225 |
if (isFolderTreeSelected) { |
|
227 |
if (isFolderTreeSelected || isMysharedSelected) {
|
|
226 | 228 |
trashItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.emptyTrash()).getHTML() + " Move to Trash</span>", true, new ToTrashCommand(app, this, selectedFiles)); |
227 | 229 |
contextMenu.addItem(trashItem); |
228 | 230 |
} |
... | ... | |
232 | 234 |
contextMenu.addItem(restore); |
233 | 235 |
} |
234 | 236 |
} |
235 |
if (!isMysharedSelected) { |
|
236 |
copyItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.copy()).getHTML() + " Copy</span>", true, new CopyCommand(app, this, selectedFiles)); |
|
237 |
contextMenu.addItem(copyItem); |
|
238 |
} |
|
239 | 237 |
|
240 |
if (isFolderTreeSelected) { |
|
238 |
if (isFolderTreeSelected || isMysharedSelected) {
|
|
241 | 239 |
deleteItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.delete()).getHTML() + " Delete</span>", true, new DeleteCommand(app, this, selectedFiles, MessagePanel.images)); |
242 | 240 |
contextMenu.addItem(deleteItem); |
243 | 241 |
} |
... | ... | |
247 | 245 |
contextMenu.addItem(new MenuItem("<span>" + AbstractImagePrototype.create(newImages.viewText()).getHTML() + " Properties</span>", true, new PropertiesCommand(app, this, selectedFiles, PropertiesCommand.PROPERTIES))); |
248 | 246 |
contextMenu.addItem(new MenuItem("<span>" + AbstractImagePrototype.create(newImages.sharing()).getHTML() + " Sharing</span>", true, new PropertiesCommand(app, this, selectedFiles, PropertiesCommand.PERMISSIONS))); |
249 | 247 |
contextMenu.addItem(new MenuItem("<span>" + AbstractImagePrototype.create(newImages.internet()).getHTML() + " Publish</span>", true, new PropertiesCommand(app, this, selectedFiles, PropertiesCommand.PUBLISH))); |
250 |
if (!isMysharedSelected) |
|
251 |
contextMenu.addItem(new MenuItem("<span>" + AbstractImagePrototype.create(newImages.versions()).getHTML() + " Versions</span>", true, new PropertiesCommand(app, this, selectedFiles, PropertiesCommand.VERSIONS))); |
|
248 |
contextMenu.addItem(new MenuItem("<span>" + AbstractImagePrototype.create(newImages.versions()).getHTML() + " Versions</span>", true, new PropertiesCommand(app, this, selectedFiles, PropertiesCommand.VERSIONS))); |
|
252 | 249 |
} |
253 | 250 |
|
254 | 251 |
} |
Also available in: Unified diff