this.clientFactory.getPlaceController().goTo(place);
}
@Override
public void start(final AcceptsOneWidget containerWidget, EventBus eventBus) {
final EditView editView = this.clientFactory.getPageEditView();
// get page content
this.clientFactory.getPageService().get(
this.place.getPageNameDecoded(), new AsyncCallback<Page>() {
@Override
public void onFailure(Throwable caught) {
}
@Override
public void onSuccess(Page result) {
editView.setPageName(result.getName());
editView.setContent(SafeHtmlUtils
.fromTrustedString(result.getContent()));
editView.setPresenter(EditActivity.this);
editView.setPageService(EditActivity.this.clientFactory
.getPageService());
containerWidget.setWidget(editView.asWidget());
}
});
}