From: Christos Stathis Date: Thu, 14 Jul 2011 10:44:57 +0000 (+0300) Subject: Implemented file download X-Git-Tag: pithos/v0.7.8~203^2~3 X-Git-Url: https://code.grnet.gr/git/pithos/commitdiff_plain/55081c0ab1c7edbe1f62dd1164626379ccee1d3b?hp=2938333bb9babeb388aa78a301f3d2767789f94e Implemented file download --- diff --git a/web_client/src/gr/grnet/pithos/web/client/FileContextMenu.java b/web_client/src/gr/grnet/pithos/web/client/FileContextMenu.java index 2fdc4ed..af74c56 100644 --- a/web_client/src/gr/grnet/pithos/web/client/FileContextMenu.java +++ b/web_client/src/gr/grnet/pithos/web/client/FileContextMenu.java @@ -142,8 +142,8 @@ public class FileContextMenu extends PopupPanel { contextMenu.addItem(pasteItem); } -// MenuItem upload = new MenuItem("" + AbstractImagePrototype.create(images.fileUpdate()).getHTML() + " Upload", true, new UploadFileCommand(this, selectedFolder)); -// contextMenu.addItem(upload); + MenuItem upload = new MenuItem("" + AbstractImagePrototype.create(images.fileUpdate()).getHTML() + " Upload", true, new UploadFileCommand(this, selectedFolder)); + contextMenu.addItem(upload); // MenuItem refresh = new MenuItem("" + AbstractImagePrototype.create(images.refresh()).getHTML() + " Refresh", true, new RefreshCommand(this, images)); // contextMenu.addItem(refresh); @@ -173,12 +173,12 @@ public class FileContextMenu extends PopupPanel { // propItem = new MenuItem("" + AbstractImagePrototype.create(newImages.viewText()).getHTML() + " Properties", true, new PropertiesCommand(this, images, 0)); // contextMenu.addItem(propItem); -// downloadItem = new MenuItem("" + AbstractImagePrototype.create(newImages.download()).getHTML() + " Download", true, new Command() { -// @Override -// public void execute() { -// } -// }); -// contextMenu.addItem(downloadItem); + downloadItem = new MenuItem("" + AbstractImagePrototype.create(newImages.download()).getHTML() + " Download", true, new Command() { + @Override + public void execute() { + } + }); + contextMenu.addItem(downloadItem); // final Command unselectAllCommand = new Command() { //