import gr.ebs.gss.client.rest.GetCommand;
import gr.ebs.gss.client.rest.resource.FileResource;
import gr.ebs.gss.client.rest.resource.FolderResource;
+import gr.ebs.gss.client.rest.resource.RestResource;
+import gr.ebs.gss.client.rest.resource.RestResourceWrapper;
import java.util.ArrayList;
import java.util.List;
containerPanel = _containerPanel;
}
+ @Override
public void execute() {
containerPanel.hide();
displayNewFile();
* Display the 'new file' dialog for uploading a new file to the system.
*/
private void displayNewFile() {
- TreeItem currentFolder = GSS.get().getFolders().getCurrent();
+ RestResource currentFolder = GSS.get().getTreeView().getSelection();
if (currentFolder == null) {
GSS.get().displayError("You have to select the parent folder first");
return;
getFileList();
DeferredCommand.addCommand(new IncrementalCommand() {
+ @Override
public boolean execute() {
boolean res = canContinue();
if (res) {
}
private void getFileList() {
- GetCommand<FolderResource> eg = new GetCommand<FolderResource>(FolderResource.class,((FolderResource)GSS.get().getFolders().getCurrent().getUserObject()).getUri(), null){
+ GetCommand<FolderResource> eg = new GetCommand<FolderResource>(FolderResource.class,((RestResourceWrapper)GSS.get().getTreeView().getSelection()).getUri(), null){
@Override
public void onComplete() {