Revision 7ed6977e web_client/src/gr/grnet/pithos/web/client/commands/RefreshCommand.java
b/web_client/src/gr/grnet/pithos/web/client/commands/RefreshCommand.java | ||
---|---|---|
34 | 34 |
*/ |
35 | 35 |
package gr.grnet.pithos.web.client.commands; |
36 | 36 |
|
37 |
import gr.grnet.pithos.web.client.FileMenu; |
|
37 |
import gr.grnet.pithos.web.client.FileContextMenu;
|
|
38 | 38 |
import gr.grnet.pithos.web.client.Pithos; |
39 |
import gr.grnet.pithos.web.client.rest.resource.FileResource; |
|
40 |
import gr.grnet.pithos.web.client.rest.resource.GroupUserResource; |
|
41 |
|
|
42 |
import java.util.List; |
|
43 | 39 |
|
44 | 40 |
import com.google.gwt.user.client.Command; |
45 | 41 |
import com.google.gwt.user.client.ui.PopupPanel; |
... | ... | |
47 | 43 |
|
48 | 44 |
public class RefreshCommand implements Command { |
49 | 45 |
|
50 |
final FileMenu.Images newImages; |
|
46 |
final FileContextMenu.Images newImages;
|
|
51 | 47 |
|
52 | 48 |
private PopupPanel containerPanel; |
53 | 49 |
|
... | ... | |
57 | 53 |
* @param _containerPanel |
58 | 54 |
* @param _newImages the images of all the possible delete dialogs |
59 | 55 |
*/ |
60 |
public RefreshCommand(Pithos _app, PopupPanel _containerPanel, final FileMenu.Images _newImages) { |
|
56 |
public RefreshCommand(Pithos _app, PopupPanel _containerPanel, final FileContextMenu.Images _newImages) {
|
|
61 | 57 |
app = _app; |
62 | 58 |
containerPanel = _containerPanel; |
63 | 59 |
newImages = _newImages; |
... | ... | |
66 | 62 |
@Override |
67 | 63 |
public void execute() { |
68 | 64 |
containerPanel.hide(); |
69 |
if (app.getCurrentSelection() instanceof FileResource || app.getCurrentSelection() instanceof List) |
|
70 |
app.showFileList(true); |
|
71 |
else if (app.getCurrentSelection() instanceof GroupUserResource) |
|
72 |
return; |
|
73 |
else{ |
|
74 |
//TODO:CELLTREE |
|
75 |
//DnDTreeItem selectedTreeItem = (DnDTreeItem) app.getFolders().getCurrent(); |
|
76 |
//if(selectedTreeItem != null){ |
|
77 |
//app.getFolders().updateFolder(selectedTreeItem); |
|
78 |
app.getTreeView().updateNode(app.getTreeView().getSelection()); |
|
79 |
app.showFileList(true); |
|
80 |
//} |
|
81 |
} |
|
65 |
// if (app.getCurrentSelection() instanceof FileResource || app.getCurrentSelection() instanceof List)
|
|
66 |
// app.showFileList(true);
|
|
67 |
// else if (app.getCurrentSelection() instanceof GroupUserResource)
|
|
68 |
// return;
|
|
69 |
// else{
|
|
70 |
// //TODO:CELLTREE
|
|
71 |
// //DnDTreeItem selectedTreeItem = (DnDTreeItem) app.getFolders().getCurrent();
|
|
72 |
// //if(selectedTreeItem != null){
|
|
73 |
// //app.getFolders().updateFolder(selectedTreeItem);
|
|
74 |
// app.getTreeView().updateNode(app.getTreeView().getSelection());
|
|
75 |
// app.showFileList(true);
|
|
76 |
// //}
|
|
77 |
// }
|
|
82 | 78 |
} |
83 | 79 |
} |
Also available in: Unified diff