Revision 1e413f9b src/gr/grnet/pithos/web/client/FolderContextMenu.java
b/src/gr/grnet/pithos/web/client/FolderContextMenu.java | ||
---|---|---|
99 | 99 |
contextMenu.addItem(newFolder); |
100 | 100 |
|
101 | 101 |
// do not show the copy & cut option for the user's root folder |
102 |
MenuItem cut = new MenuItem("<span id = 'folderContextMenu.cut'>" + AbstractImagePrototype.create(newImages.cut()).getHTML() + " Cut</span>", true, new CutCommand(this));
|
|
102 |
MenuItem cut = new MenuItem("<span id = 'folderContextMenu.cut'>" + AbstractImagePrototype.create(newImages.cut()).getHTML() + " Cut</span>", true, new CutCommand(GSS.get(), this, folder));
|
|
103 | 103 |
contextMenu.addItem(cut); |
104 | 104 |
|
105 |
MenuItem copy = new MenuItem("<span id = 'folderContextMenu.copy'>" + AbstractImagePrototype.create(newImages.copy()).getHTML() + " Copy</span>", true, new CopyCommand(this));
|
|
105 |
MenuItem copy = new MenuItem("<span id = 'folderContextMenu.copy'>" + AbstractImagePrototype.create(newImages.copy()).getHTML() + " Copy</span>", true, new CopyCommand(GSS.get(), this, folder));
|
|
106 | 106 |
contextMenu.addItem(copy); |
107 | 107 |
|
108 |
pasteItem = new MenuItem("<span id = 'folderContextMenu.paste'>" + AbstractImagePrototype.create(newImages.paste()).getHTML() + " Paste</span>", true, new PasteCommand(this));
|
|
108 |
pasteItem = new MenuItem("<span id = 'folderContextMenu.paste'>" + AbstractImagePrototype.create(newImages.paste()).getHTML() + " Paste</span>", true, new PasteCommand(GSS.get(), this, folder));
|
|
109 | 109 |
contextMenu.addItem(pasteItem); |
110 | 110 |
|
111 | 111 |
// do not show delete options for the user's root folder |
Also available in: Unified diff