Revision ebead1b5 src/gr/grnet/pithos/web/client/ToolsMenu.java
b/src/gr/grnet/pithos/web/client/ToolsMenu.java | ||
---|---|---|
41 | 41 |
import gr.grnet.pithos.web.client.commands.DeleteCommand; |
42 | 42 |
import gr.grnet.pithos.web.client.commands.DeleteGroupCommand; |
43 | 43 |
import gr.grnet.pithos.web.client.commands.EmptyTrashCommand; |
44 |
import gr.grnet.pithos.web.client.commands.NewFolderCommand; |
|
45 | 44 |
import gr.grnet.pithos.web.client.commands.PasteCommand; |
46 | 45 |
import gr.grnet.pithos.web.client.commands.PropertiesCommand; |
47 |
import gr.grnet.pithos.web.client.commands.RefreshCommand; |
|
48 | 46 |
import gr.grnet.pithos.web.client.commands.RemoveUserCommand; |
49 | 47 |
import gr.grnet.pithos.web.client.commands.RestoreTrashCommand; |
50 | 48 |
import gr.grnet.pithos.web.client.commands.ToTrashCommand; |
... | ... | |
56 | 54 |
|
57 | 55 |
import java.util.List; |
58 | 56 |
|
59 |
import com.google.gwt.resources.client.ImageResource; |
|
60 |
import com.google.gwt.resources.client.ClientBundle.Source; |
|
61 | 57 |
import com.google.gwt.user.client.Command; |
62 | 58 |
import com.google.gwt.user.client.Window; |
63 | 59 |
import com.google.gwt.user.client.ui.AbstractImagePrototype; |
... | ... | |
133 | 129 |
Object item = app.getClipboard().getItem(); |
134 | 130 |
boolean showPaste = false; |
135 | 131 |
if (item instanceof List) { |
136 |
List<File> _files = (List<File>) item; |
|
132 |
@SuppressWarnings("unchecked") |
|
133 |
List<File> _files = (List<File>) item; |
|
137 | 134 |
if (_files.get(0).getOwner().equals(folder.getOwner())) |
138 | 135 |
showPaste = true; |
139 | 136 |
} |
... | ... | |
184 | 181 |
@Override |
185 | 182 |
public void execute() { |
186 | 183 |
for (File f: files) |
187 |
Window.open(app.getApiPath() + files.get(0).getOwner() + files.get(0).getUri() + "?X-Auth-Token=" + app.getToken(), "_blank", "");
|
|
184 |
Window.open(app.getApiPath() + f.getOwner() + f.getUri() + "?X-Auth-Token=" + app.getToken(), "_blank", "");
|
|
188 | 185 |
} |
189 | 186 |
})); |
190 | 187 |
} |
Also available in: Unified diff