Revision 1e413f9b src/gr/grnet/pithos/web/client/FileContextMenu.java
b/src/gr/grnet/pithos/web/client/FileContextMenu.java | ||
---|---|---|
137 | 137 |
images = newImages; |
138 | 138 |
MenuBar contextMenu = new MenuBar(true); |
139 | 139 |
|
140 |
pasteItem = new MenuItem("<span>" + AbstractImagePrototype.create(images.paste()).getHTML() + " Paste</span>", true, new PasteCommand(this));
|
|
140 |
pasteItem = new MenuItem("<span>" + AbstractImagePrototype.create(images.paste()).getHTML() + " Paste</span>", true, new PasteCommand(GSS.get(), this, selectedFolder));
|
|
141 | 141 |
contextMenu.addItem(pasteItem); |
142 | 142 |
|
143 | 143 |
MenuItem upload = new MenuItem("<span>" + AbstractImagePrototype.create(images.fileUpdate()).getHTML() + " Upload</span>", true, new UploadFileCommand(this, selectedFolder)); |
... | ... | |
153 | 153 |
MenuItem delete = new MenuItem("<span>" + AbstractImagePrototype.create(images.delete()).getHTML() + " Delete</span>", true, new DeleteCommand(this, null, images)); |
154 | 154 |
contextMenu.addItem(delete); |
155 | 155 |
} else { |
156 |
cutItem = new MenuItem("<span id='fileContextMenu.cut'>" + AbstractImagePrototype.create(newImages.cut()).getHTML() + " Cut</span>", true, new CutCommand(this));
|
|
156 |
cutItem = new MenuItem("<span id='fileContextMenu.cut'>" + AbstractImagePrototype.create(newImages.cut()).getHTML() + " Cut</span>", true, new CutCommand(GSS.get(), this, selectedFiles));
|
|
157 | 157 |
contextMenu.addItem(cutItem); |
158 | 158 |
|
159 |
copyItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.copy()).getHTML() + " Copy</span>", true, new CopyCommand(this));
|
|
159 |
copyItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.copy()).getHTML() + " Copy</span>", true, new CopyCommand(GSS.get(), this, selectedFiles));
|
|
160 | 160 |
contextMenu.addItem(copyItem); |
161 | 161 |
|
162 | 162 |
trashItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.emptyTrash()).getHTML() + " Move to Trash</span>", true, new ToTrashCommand(this)); |
Also available in: Unified diff