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;
* 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;
}
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() {