Revision f55cf326 web_client/src/gr/grnet/pithos/web/client/commands/RefreshCommand.java
b/web_client/src/gr/grnet/pithos/web/client/commands/RefreshCommand.java | ||
---|---|---|
35 | 35 |
package gr.grnet.pithos.web.client.commands; |
36 | 36 |
|
37 | 37 |
import gr.grnet.pithos.web.client.FileMenu; |
38 |
import gr.grnet.pithos.web.client.GSS;
|
|
38 |
import gr.grnet.pithos.web.client.Pithos;
|
|
39 | 39 |
import gr.grnet.pithos.web.client.rest.resource.FileResource; |
40 | 40 |
import gr.grnet.pithos.web.client.rest.resource.GroupUserResource; |
41 | 41 |
|
... | ... | |
63 | 63 |
@Override |
64 | 64 |
public void execute() { |
65 | 65 |
containerPanel.hide(); |
66 |
if (GSS.get().getCurrentSelection() instanceof FileResource || GSS.get().getCurrentSelection() instanceof List)
|
|
67 |
GSS.get().showFileList(true);
|
|
68 |
else if (GSS.get().getCurrentSelection() instanceof GroupUserResource)
|
|
66 |
if (Pithos.get().getCurrentSelection() instanceof FileResource || Pithos.get().getCurrentSelection() instanceof List)
|
|
67 |
Pithos.get().showFileList(true);
|
|
68 |
else if (Pithos.get().getCurrentSelection() instanceof GroupUserResource)
|
|
69 | 69 |
return; |
70 | 70 |
else{ |
71 | 71 |
//TODO:CELLTREE |
72 |
//DnDTreeItem selectedTreeItem = (DnDTreeItem) GSS.get().getFolders().getCurrent();
|
|
72 |
//DnDTreeItem selectedTreeItem = (DnDTreeItem) Pithos.get().getFolders().getCurrent();
|
|
73 | 73 |
//if(selectedTreeItem != null){ |
74 |
//GSS.get().getFolders().updateFolder(selectedTreeItem);
|
|
75 |
GSS.get().getTreeView().updateNode(GSS.get().getTreeView().getSelection());
|
|
76 |
GSS.get().showFileList(true);
|
|
74 |
//Pithos.get().getFolders().updateFolder(selectedTreeItem);
|
|
75 |
Pithos.get().getTreeView().updateNode(Pithos.get().getTreeView().getSelection());
|
|
76 |
Pithos.get().showFileList(true);
|
|
77 | 77 |
//} |
78 | 78 |
} |
79 | 79 |
} |
Also available in: Unified diff