Revision 749068ba src/gr/grnet/pithos/web/client/FileMenu.java

b/src/gr/grnet/pithos/web/client/FileMenu.java
34 34
 */
35 35
package gr.grnet.pithos.web.client;
36 36

  
37
import gr.grnet.pithos.web.client.commands.EmptyTrashCommand;
38 37
import gr.grnet.pithos.web.client.commands.NewFolderCommand;
39 38
import gr.grnet.pithos.web.client.commands.PropertiesCommand;
40
import gr.grnet.pithos.web.client.commands.RefreshCommand;
41 39
import gr.grnet.pithos.web.client.commands.UploadFileCommand;
42 40
import gr.grnet.pithos.web.client.foldertree.File;
43 41
import gr.grnet.pithos.web.client.foldertree.Folder;
44
import gr.grnet.pithos.web.client.rest.resource.FileResource;
45 42

  
46 43
import java.util.List;
47 44

  
48
import com.google.gwt.event.dom.client.ClickEvent;
49
import com.google.gwt.event.dom.client.ClickHandler;
50 45
import com.google.gwt.resources.client.ClientBundle;
51 46
import com.google.gwt.resources.client.ImageResource;
52 47
import com.google.gwt.user.client.Command;
......
100 95
	 *
101 96
	 * @param _images the image bundle passed on by the parent object
102 97
	 */
103
	public FileMenu(GSS _app, final Images _images) {
98
	public FileMenu(Pithos _app, final Images _images) {
104 99
        super(true);
105 100
		setAnimationEnabled(true);
106 101
		images = _images;
......
115 110
            addItem(uploadItem);
116 111
        }
117 112
        if (selectedFiles.size() == 1) {
118
            addItem(new MenuItem("<span><a class='hidden-link' href='" + GSS.get().getApiPath() + GSS.get().getUsername() + selectedFiles.get(0).getUri() + "?X-Auth-Token=" + GSS.get().getToken() + "' target='_blank'>" + AbstractImagePrototype.create(images.download()).getHTML() + " Download</a></span>", true, (Command) null));
113
            addItem(new MenuItem("<span><a class='hidden-link' href='" + Pithos.get().getApiPath() + Pithos.get().getUsername() + selectedFiles.get(0).getUri() + "?X-Auth-Token=" + Pithos.get().getToken() + "' target='_blank'>" + AbstractImagePrototype.create(images.download()).getHTML() + " Download</a></span>", true, (Command) null));
119 114
        }
120 115

  
121 116
//        MenuItem emptyTrashItem = new MenuItem("<span>" + AbstractImagePrototype.create(images.emptyTrash()).getHTML() + "&nbsp;Empty Trash</span>", true, new EmptyTrashCommand(this));
......
132 127
//                       .setVisible(propertiesVisible);
133 128
//
134 129
        if (selectedFiles.size() > 0 || selectedFolder != null) {
135
            MenuItem propertiesItem = new MenuItem("<span>" + AbstractImagePrototype.create(images.viewText()).getHTML() + "&nbsp;Properties</span>", true, new PropertiesCommand(GSS.get(), null, selectedFiles.size() > 0 ? selectedFiles : selectedFolder, images, 0));
130
            MenuItem propertiesItem = new MenuItem("<span>" + AbstractImagePrototype.create(images.viewText()).getHTML() + "&nbsp;Properties</span>", true, new PropertiesCommand(Pithos.get(), null, selectedFiles.size() > 0 ? selectedFiles : selectedFolder, images, 0));
136 131
            addItem(propertiesItem);
137 132
        }
138 133
	}

Also available in: Unified diff