EventBus.getInstance().addObserver(GotActivityResponseEvent.class, new Observer<GotActivityResponseEvent>()
{
public void update(final GotActivityResponseEvent ev)
{
ShareMessageDialogContent dialogContent = new ShareMessageDialogContent(ev.getResponse());
dialogContent.setHost(new DialogContentHost()
{
public void center()
{
}
public void hide()
{
WidgetJSNIFacadeImpl.nativeClose();
}
});
Widget dialogWidget = dialogContent.getBody();
dialogWidget.addStyleName(StaticResourceBundle.INSTANCE.coreCss().embeddedWidget());
dialogWidget.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectCommentWidget());
main.add(dialogWidget);
}
});