import gr.ebs.gss.client.rest.RestException;
import gr.ebs.gss.client.rest.resource.FileResource;
import gr.ebs.gss.client.rest.resource.FolderResource;
+import gr.ebs.gss.client.rest.resource.RestResourceWrapper;
import gr.ebs.gss.client.rest.resource.UploadStatusResource;
import java.util.ArrayList;
panel.add(auth);
// Add an informative label with the folder name.
Object selection = GSS.get().getTreeView().getSelection();
- folder = (FolderResource) selection;
+ folder = ((RestResourceWrapper) selection).getResource();
upload.setName("file");
filenameLabel.setText("");
filenameLabel.setVisible(false);
}
progressBar.setProgress(100);
cancelUpload();
- GSS.get().getTreeView().updateNode(folder);//showFileList(true);
+ GSS.get().getTreeView().updateNode(GSS.get().getTreeView().getSelection());
GSS.get().getStatusPanel().updateStats();
}