Revision 1e861a19 web_client/src/gr/grnet/pithos/web/client/FileContextMenu.java
b/web_client/src/gr/grnet/pithos/web/client/FileContextMenu.java | ||
---|---|---|
173 | 173 |
// propItem = new MenuItem("<span>" + AbstractImagePrototype.create(newImages.viewText()).getHTML() + " Properties</span>", true, new PropertiesCommand(this, images, 0)); |
174 | 174 |
// contextMenu.addItem(propItem); |
175 | 175 |
|
176 |
downloadItem = 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(newImages.download()).getHTML() + " Download</a></span>", true, new Command() { |
|
176 |
contextMenu.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(newImages.download()).getHTML() + " Download</a></span>", true, (Command) null)); |
|
177 |
|
|
178 |
MenuItem unSelect = new MenuItem("<span>" + AbstractImagePrototype.create(images.unselectAll()).getHTML() + " Unselect</span>", true, new Command() { |
|
177 | 179 |
@Override |
178 | 180 |
public void execute() { |
181 |
hide(); |
|
182 |
GSS.get().getFileList().clearSelectedRows(); |
|
179 | 183 |
} |
180 | 184 |
}); |
181 |
contextMenu.addItem(downloadItem); |
|
182 |
|
|
183 |
// final Command unselectAllCommand = new Command() { |
|
184 |
// |
|
185 |
// @Override |
|
186 |
// public void execute() { |
|
187 |
// hide(); |
|
188 |
// if(GSS.get().isFileListShowing()) |
|
189 |
// GSS.get().getFileList().clearSelectedRows(); |
|
190 |
// } |
|
191 |
// }; |
|
192 |
// MenuItem unSelect = new MenuItem("<span>" + AbstractImagePrototype.create(images.unselectAll()).getHTML() + " Unselect</span>", true, unselectAllCommand); |
|
193 |
// contextMenu.addItem(unSelect); |
|
185 |
contextMenu.addItem(unSelect); |
|
194 | 186 |
|
195 | 187 |
// } |
196 | 188 |
add(contextMenu); |
Also available in: Unified diff