Revision 749068ba src/gr/grnet/pithos/web/client/FileUploadDialog.java
b/src/gr/grnet/pithos/web/client/FileUploadDialog.java | ||
---|---|---|
34 | 34 |
*/ |
35 | 35 |
package gr.grnet.pithos.web.client; |
36 | 36 |
|
37 |
import com.google.gwt.core.client.Scheduler; |
|
38 |
import com.google.gwt.http.client.Response; |
|
39 | 37 |
import gr.grnet.pithos.web.client.foldertree.File; |
40 | 38 |
import gr.grnet.pithos.web.client.foldertree.Folder; |
41 |
import gr.grnet.pithos.web.client.foldertree.Resource; |
|
42 |
import gr.grnet.pithos.web.client.rest.GetCommand; |
|
43 |
import gr.grnet.pithos.web.client.rest.PostCommand; |
|
44 |
import gr.grnet.pithos.web.client.rest.PutRequest; |
|
45 |
import gr.grnet.pithos.web.client.rest.RestCommand; |
|
46 |
import gr.grnet.pithos.web.client.rest.RestException; |
|
47 |
import gr.grnet.pithos.web.client.rest.resource.FileResource; |
|
48 |
import gr.grnet.pithos.web.client.rest.resource.FolderResource; |
|
49 |
import gr.grnet.pithos.web.client.rest.resource.RestResourceWrapper; |
|
50 |
import gr.grnet.pithos.web.client.rest.resource.UploadStatusResource; |
|
51 |
|
|
52 |
import java.util.ArrayList; |
|
53 |
import java.util.List; |
|
54 | 39 |
|
55 | 40 |
import com.google.gwt.core.client.GWT; |
56 | 41 |
import com.google.gwt.dom.client.NativeEvent; |
57 | 42 |
import com.google.gwt.event.dom.client.ClickEvent; |
58 | 43 |
import com.google.gwt.event.dom.client.ClickHandler; |
59 | 44 |
import com.google.gwt.event.dom.client.KeyCodes; |
60 |
import com.google.gwt.http.client.URL; |
|
61 |
import com.google.gwt.json.client.JSONObject; |
|
62 |
import com.google.gwt.json.client.JSONString; |
|
63 |
import com.google.gwt.user.client.DeferredCommand; |
|
64 | 45 |
import com.google.gwt.user.client.Event.NativePreviewEvent; |
65 |
import com.google.gwt.user.client.Timer; |
|
66 | 46 |
import com.google.gwt.user.client.ui.Button; |
67 | 47 |
import com.google.gwt.user.client.ui.DialogBox; |
68 | 48 |
import com.google.gwt.user.client.ui.FileUpload; |
... | ... | |
78 | 58 |
import com.google.gwt.user.client.ui.HorizontalPanel; |
79 | 59 |
import com.google.gwt.user.client.ui.Label; |
80 | 60 |
import com.google.gwt.user.client.ui.VerticalPanel; |
81 |
import javax.xml.transform.Templates; |
|
82 | 61 |
|
83 | 62 |
/** |
84 | 63 |
* The 'File upload' dialog box implementation. |
... | ... | |
102 | 81 |
|
103 | 82 |
protected Folder folder; |
104 | 83 |
|
105 |
protected GSS app;
|
|
84 |
protected Pithos app;
|
|
106 | 85 |
|
107 | 86 |
/** |
108 | 87 |
* The widget's constructor. |
... | ... | |
293 | 272 |
return null; |
294 | 273 |
} |
295 | 274 |
|
296 |
public void setApp(GSS app) {
|
|
275 |
public void setApp(Pithos app) {
|
|
297 | 276 |
this.app = app; |
298 | 277 |
} |
299 | 278 |
|
Also available in: Unified diff