Revision e8288e3f src/gr/grnet/pithos/web/client/ToolsMenu.java
b/src/gr/grnet/pithos/web/client/ToolsMenu.java | ||
---|---|---|
47 | 47 |
import gr.grnet.pithos.web.client.commands.RestoreTrashCommand; |
48 | 48 |
import gr.grnet.pithos.web.client.commands.ToTrashCommand; |
49 | 49 |
import gr.grnet.pithos.web.client.foldertree.File; |
50 |
import gr.grnet.pithos.web.client.foldertree.FileFolderResource; |
|
50 | 51 |
import gr.grnet.pithos.web.client.foldertree.Folder; |
51 | 52 |
import gr.grnet.pithos.web.client.grouptree.Group; |
52 | 53 |
import gr.grnet.pithos.web.client.grouptree.GroupTreeView; |
... | ... | |
54 | 55 |
|
55 | 56 |
import java.util.List; |
56 | 57 |
|
57 |
import com.google.gwt.http.client.URL; |
|
58 | 58 |
import com.google.gwt.user.client.Command; |
59 | 59 |
import com.google.gwt.user.client.Window; |
60 | 60 |
import com.google.gwt.user.client.ui.AbstractImagePrototype; |
... | ... | |
88 | 88 |
* |
89 | 89 |
* @param newImages the image bundle passed on by the parent object |
90 | 90 |
*/ |
91 |
public ToolsMenu(final Pithos app, Images newImages, TreeView selectedTree, Folder folder, final List<File> files) { |
|
91 |
public ToolsMenu(final Pithos app, Images newImages, TreeView selectedTree, Folder folder, final List<FileFolderResource> files) {
|
|
92 | 92 |
// The popup's constructor's argument is a boolean specifying that it |
93 | 93 |
// auto-close itself when the user clicks outside of it. |
94 | 94 |
super(true); |
... | ... | |
195 | 195 |
|
196 | 196 |
@Override |
197 | 197 |
public void execute() { |
198 |
for (File f: files) |
|
199 |
Window.open(app.getApiPath() + f.getOwner() + f.getUri(), "_blank", ""); |
|
198 |
for (FileFolderResource res: files) { |
|
199 |
if (res instanceof File) { |
|
200 |
File f = (File) res; |
|
201 |
Window.open(app.getApiPath() + f.getOwner() + f.getUri(), "_blank", ""); |
|
202 |
} |
|
203 |
} |
|
200 | 204 |
} |
201 | 205 |
})); |
202 | 206 |
empty = false; |
Also available in: Unified diff