Revision 64d3b76b src/gr/grnet/pithos/web/client/commands/PropertiesCommand.java
b/src/gr/grnet/pithos/web/client/commands/PropertiesCommand.java | ||
---|---|---|
34 | 34 |
*/ |
35 | 35 |
package gr.grnet.pithos.web.client.commands; |
36 | 36 |
|
37 |
import gr.grnet.pithos.web.client.FilePermissionsDialog; |
|
38 |
import gr.grnet.pithos.web.client.FilePropertiesDialog; |
|
39 |
import gr.grnet.pithos.web.client.FilePublishDialog; |
|
40 |
import gr.grnet.pithos.web.client.FileVersionsDialog; |
|
41 |
import gr.grnet.pithos.web.client.FilesPropertiesDialog; |
|
42 |
import gr.grnet.pithos.web.client.FolderPermissionsDialog; |
|
43 |
import gr.grnet.pithos.web.client.FolderPropertiesDialog; |
|
44 |
import gr.grnet.pithos.web.client.Pithos; |
|
37 |
import gr.grnet.pithos.web.client.*; |
|
38 |
import gr.grnet.pithos.web.client.FileShareDialog; |
|
45 | 39 |
import gr.grnet.pithos.web.client.foldertree.File; |
46 | 40 |
import gr.grnet.pithos.web.client.foldertree.Folder; |
47 | 41 |
|
... | ... | |
86 | 80 |
if (containerPanel != null) |
87 | 81 |
containerPanel.hide(); |
88 | 82 |
|
83 |
Pithos.LOG("PropertiesCommand::execute(), resource = ", resource); |
|
89 | 84 |
if (resource instanceof Folder) { |
90 | 85 |
final Folder folder = (Folder) resource; |
91 | 86 |
switch (tabToShow) { |
... | ... | |
132 | 127 |
|
133 | 128 |
@Override |
134 | 129 |
public void execute() { |
135 |
FilePermissionsDialog dlg = new FilePermissionsDialog(app, f);
|
|
130 |
FileShareDialog dlg = new FileShareDialog(app, f);
|
|
136 | 131 |
dlg.center(); |
137 | 132 |
} |
138 | 133 |
}); |
... | ... | |
141 | 136 |
FileVersionsDialog dlg2 = new FileVersionsDialog(app, files.get(0)); |
142 | 137 |
dlg2.center(); |
143 | 138 |
break; |
144 |
case PUBLISH: |
|
145 |
app.scheduleFileHeadCommand(f, new Command() { |
|
146 |
|
|
147 |
@Override |
|
148 |
public void execute() { |
|
149 |
FilePublishDialog dlg = new FilePublishDialog(app, f); |
|
150 |
dlg.center(); |
|
151 |
} |
|
152 |
}); |
|
153 |
break; |
|
154 | 139 |
default: |
155 | 140 |
break; |
156 | 141 |
} |
Also available in: Unified diff