Revision d4374639 src/gr/grnet/pithos/web/client/FileContextMenu.java

b/src/gr/grnet/pithos/web/client/FileContextMenu.java
43 43
import gr.grnet.pithos.web.client.commands.RestoreTrashCommand;
44 44
import gr.grnet.pithos.web.client.commands.ToTrashCommand;
45 45
import gr.grnet.pithos.web.client.commands.UploadFileCommand;
46
import gr.grnet.pithos.web.client.foldertree.File;
46 47
import gr.grnet.pithos.web.client.foldertree.Folder;
47 48
import gr.grnet.pithos.web.client.rest.resource.FileResource;
48 49
import gr.grnet.pithos.web.client.rest.resource.FolderResource;
......
127 128
	 *
128 129
	 * @param newImages the image bundle passed on by the parent object
129 130
	 */
130
	public FileContextMenu(Images newImages, Folder selectedFolder, boolean isTrash) {
131
	public FileContextMenu(Images newImages, Folder selectedFolder, List<File> selectedFiles, boolean isTrash) {
131 132
		// The popup's constructor's argument is a boolean specifying that it
132 133
		// auto-close itself when the user clicks outside of it.
133 134
		super(true);
......
161 162
			trashItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.emptyTrash()).getHTML() + "&nbsp;Move to Trash</span>", true, new ToTrashCommand(this));
162 163
            contextMenu.addItem(trashItem);
163 164

  
164
			deleteItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.delete()).getHTML() + "&nbsp;Delete</span>", true, new DeleteCommand(this, null, images));
165
			deleteItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.delete()).getHTML() + "&nbsp;Delete</span>", true, new DeleteCommand(this, selectedFiles, images));
165 166
            contextMenu.addItem(deleteItem);
166 167

  
167 168
			sharingItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.sharing()).getHTML() + "&nbsp;Sharing</span>", true, new PropertiesCommand(this, images, 1));

Also available in: Unified diff