Revision f55cf326 web_client/src/gr/grnet/pithos/web/client/FilesPropertiesDialog.java
b/web_client/src/gr/grnet/pithos/web/client/FilesPropertiesDialog.java | ||
---|---|---|
34 | 34 |
*/ |
35 | 35 |
package gr.grnet.pithos.web.client; |
36 | 36 |
|
37 |
import gr.grnet.pithos.web.client.components.TristateCheckBox; |
|
38 | 37 |
import gr.grnet.pithos.web.client.foldertree.File; |
39 | 38 |
import gr.grnet.pithos.web.client.foldertree.Folder; |
40 |
import gr.grnet.pithos.web.client.rest.MultiplePostCommand; |
|
41 |
import gr.grnet.pithos.web.client.rest.RestException; |
|
42 |
import gr.grnet.pithos.web.client.rest.resource.FileResource; |
|
43 | 39 |
|
44 |
import java.util.ArrayList; |
|
45 |
import java.util.Iterator; |
|
46 | 40 |
import java.util.List; |
47 | 41 |
|
48 |
import com.google.gwt.core.client.GWT; |
|
49 | 42 |
import com.google.gwt.event.dom.client.ClickEvent; |
50 | 43 |
import com.google.gwt.event.dom.client.ClickHandler; |
51 |
import com.google.gwt.event.dom.client.FocusEvent; |
|
52 |
import com.google.gwt.event.dom.client.FocusHandler; |
|
53 |
import com.google.gwt.json.client.JSONArray; |
|
54 |
import com.google.gwt.json.client.JSONBoolean; |
|
55 |
import com.google.gwt.json.client.JSONObject; |
|
56 |
import com.google.gwt.json.client.JSONString; |
|
57 |
import com.google.gwt.user.client.Command; |
|
58 |
import com.google.gwt.user.client.DeferredCommand; |
|
59 | 44 |
import com.google.gwt.user.client.ui.Button; |
60 | 45 |
import com.google.gwt.user.client.ui.DecoratedTabPanel; |
61 | 46 |
import com.google.gwt.user.client.ui.DisclosurePanel; |
... | ... | |
64 | 49 |
import com.google.gwt.user.client.ui.FocusPanel; |
65 | 50 |
import com.google.gwt.user.client.ui.HasHorizontalAlignment; |
66 | 51 |
import com.google.gwt.user.client.ui.HorizontalPanel; |
67 |
import com.google.gwt.user.client.ui.Label; |
|
68 | 52 |
import com.google.gwt.user.client.ui.VerticalPanel; |
69 | 53 |
|
70 | 54 |
/** |
... | ... | |
85 | 69 |
* |
86 | 70 |
* @param _files |
87 | 71 |
*/ |
88 |
public FilesPropertiesDialog(GSS _app, final List<File> _files) {
|
|
72 |
public FilesPropertiesDialog(Pithos _app, final List<File> _files) {
|
|
89 | 73 |
super(); |
90 | 74 |
|
91 | 75 |
files = _files; |
... | ... | |
270 | 254 |
// |
271 | 255 |
// @Override |
272 | 256 |
// public void onComplete() { |
273 |
// GSS.get().getTreeView().refreshCurrentNode(false);
|
|
257 |
// Pithos.get().getTreeView().refreshCurrentNode(false);
|
|
274 | 258 |
// } |
275 | 259 |
// |
276 | 260 |
// @Override |
... | ... | |
279 | 263 |
// if(t instanceof RestException){ |
280 | 264 |
// int statusCode = ((RestException)t).getHttpStatusCode(); |
281 | 265 |
// if(statusCode == 405) |
282 |
// GSS.get().displayError("You don't have the necessary permissions");
|
|
266 |
// Pithos.get().displayError("You don't have the necessary permissions");
|
|
283 | 267 |
// else if(statusCode == 404) |
284 |
// GSS.get().displayError("File does not exist");
|
|
268 |
// Pithos.get().displayError("File does not exist");
|
|
285 | 269 |
// else if(statusCode == 409) |
286 |
// GSS.get().displayError("A file with the same name already exists");
|
|
270 |
// Pithos.get().displayError("A file with the same name already exists");
|
|
287 | 271 |
// else if(statusCode == 413) |
288 |
// GSS.get().displayError("Your quota has been exceeded");
|
|
272 |
// Pithos.get().displayError("Your quota has been exceeded");
|
|
289 | 273 |
// else |
290 |
// GSS.get().displayError("Unable to modify file::"+((RestException)t).getHttpStatusText());
|
|
274 |
// Pithos.get().displayError("Unable to modify file::"+((RestException)t).getHttpStatusText());
|
|
291 | 275 |
// } |
292 | 276 |
// else |
293 |
// GSS.get().displayError("System error modifying file:"+t.getMessage());
|
|
277 |
// Pithos.get().displayError("System error modifying file:"+t.getMessage());
|
|
294 | 278 |
// } |
295 | 279 |
// }; |
296 | 280 |
// DeferredCommand.addCommand(rt); |
Also available in: Unified diff