2013-01-26 20:02:51 +01:00
|
|
|
package org.gcube.portlets.user.shareupdates.client;
|
|
|
|
|
2014-12-12 11:29:35 +01:00
|
|
|
import org.gcube.portlets.user.gcubewidgets.client.ClientScopeHelper;
|
2014-01-20 12:48:21 +01:00
|
|
|
import org.gcube.portlets.user.shareupdates.client.view.ShareUpdateForm;
|
2013-01-26 20:02:51 +01:00
|
|
|
|
|
|
|
import com.google.gwt.core.client.EntryPoint;
|
2014-12-12 11:29:35 +01:00
|
|
|
import com.google.gwt.user.client.Window.Location;
|
|
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
2013-01-26 20:02:51 +01:00
|
|
|
import com.google.gwt.user.client.ui.RootPanel;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Entry point classes define <code>onModuleLoad()</code>.
|
|
|
|
*/
|
|
|
|
public class ShareUpdates implements EntryPoint {
|
2014-12-12 11:29:35 +01:00
|
|
|
|
2013-01-26 20:02:51 +01:00
|
|
|
public void onModuleLoad() {
|
2014-12-12 11:29:35 +01:00
|
|
|
ClientScopeHelper.getService().setScope(Location.getHref(), new AsyncCallback<Boolean>() {
|
|
|
|
@Override
|
|
|
|
public void onSuccess(Boolean result) {
|
|
|
|
RootPanel.get("shareUpdateDiv").add(new ShareUpdateForm());
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void onFailure(Throwable caught) {
|
|
|
|
}
|
|
|
|
});
|
2013-01-26 20:02:51 +01:00
|
|
|
}
|
|
|
|
}
|