Revision f0ff407d
b/src/gr/grnet/pithos/web/client/Pithos.java | ||
---|---|---|
44 | 44 |
import com.google.gwt.event.dom.client.ClickHandler; |
45 | 45 |
import com.google.gwt.event.logical.shared.ResizeEvent; |
46 | 46 |
import com.google.gwt.event.logical.shared.ResizeHandler; |
47 |
import com.google.gwt.http.client.Request; |
|
48 | 47 |
import com.google.gwt.http.client.Response; |
49 | 48 |
import com.google.gwt.http.client.URL; |
50 | 49 |
import com.google.gwt.i18n.client.DateTimeFormat; |
51 | 50 |
import com.google.gwt.i18n.client.Dictionary; |
52 | 51 |
import com.google.gwt.i18n.client.TimeZone; |
53 |
import com.google.gwt.json.client.JSONObject; |
|
54 | 52 |
import com.google.gwt.resources.client.ClientBundle; |
55 | 53 |
import com.google.gwt.resources.client.CssResource; |
56 | 54 |
import com.google.gwt.resources.client.ImageResource; |
... | ... | |
60 | 58 |
import com.google.gwt.view.client.SelectionChangeEvent; |
61 | 59 |
import com.google.gwt.view.client.SelectionChangeEvent.Handler; |
62 | 60 |
import com.google.gwt.view.client.SingleSelectionModel; |
63 |
import gr.grnet.pithos.web.client.catalog.GetUserCatalogs; |
|
64 | 61 |
import gr.grnet.pithos.web.client.catalog.UpdateUserCatalogs; |
65 | 62 |
import gr.grnet.pithos.web.client.catalog.UserCatalogs; |
66 | 63 |
import gr.grnet.pithos.web.client.commands.UploadFileCommand; |
... | ... | |
332 | 329 |
} |
333 | 330 |
} |
334 | 331 |
|
332 |
static native void __ConsoleLog(String message) /*-{ |
|
333 |
try { |
|
334 |
console.log(message); |
|
335 |
} catch (e) { |
|
336 |
} |
|
337 |
}-*/; |
|
338 |
|
|
339 |
public static void LOG(String ...args) { |
|
340 |
final StringBuilder sb = new StringBuilder(); |
|
341 |
for(String arg : args) { |
|
342 |
sb.append(arg); |
|
343 |
} |
|
344 |
if(sb.length() > 0) { |
|
345 |
__ConsoleLog(sb.toString()); |
|
346 |
} |
|
347 |
} |
|
348 |
|
|
335 | 349 |
private void initialize() { |
336 |
System.out.println("initialize(), userToken = " + userToken); |
|
337 | 350 |
lastModified = new Date(); //Initialize if-modified-since value with now. |
338 | 351 |
resources.pithosCss().ensureInjected(); |
339 | 352 |
boolean bareContent = Window.Location.getParameter("noframe") != null; |
Also available in: Unified diff