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 java.util.ArrayList;
import java.util.List;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.DeferredCommand;
import com.google.gwt.user.client.ui.PopupPanel;
-import com.google.gwt.user.client.ui.TreeItem;
/**
*
if (selection == null)
return;
GWT.log("selection: " + selection.toString(), null);
- if (selection instanceof FolderResource) {
- FolderResource fdto = (FolderResource) selection;
+ if (selection instanceof RestResourceWrapper) {
+ FolderResource fdto = ((RestResourceWrapper) selection).getResource();
PostCommand tot = new PostCommand(fdto.getUri()+"?trash=","",200){
@Override
}
GSS.get().getFolders().update(GSS.get().getFolders().getTrashItem());
*/
+ FolderResource fres = ((RestResourceWrapper) GSS.get().getTreeView().getSelection()).getResource();
+ GSS.get().getTreeView().updateNodeChildren(fres.getParentURI());
+ //GSS.get().getTreeView().updateNode(GSS.get().getTreeView().getTrash());
+ GSS.get().getTreeView().updateTrashNode();
GSS.get().showFileList(true);
}