Search in sources :

Example 1 with ApplicationView

use of edu.stanford.bmir.protege.web.client.app.ApplicationView in project webprotege by protegeproject.

the class WebProtege method buildUI.

private void buildUI() {
    BUNDLE.laf().ensureInjected();
    BUNDLE.toolbar().ensureInjected();
    BUNDLE.login().ensureInjected();
    BUNDLE.style().ensureInjected();
    BUNDLE.buttons().ensureInjected();
    BUNDLE.discussion().ensureInjected();
    BUNDLE.menu().ensureInjected();
    BUNDLE.settings().ensureInjected();
    BUNDLE.valueList().ensureInjected();
    BUNDLE.tags().ensureInjected();
    WidgetMapClientBundle.BUNDLE.style().ensureInjected();
    ApplicationPresenter applicationPresenter = WebProtegeClientInjector.get().getApplicationPresenter();
    applicationPresenter.start();
    ApplicationView applicationView = applicationPresenter.getApplicationView();
    RootLayoutPanel.get().add(applicationView);
    WebProtegeActivityManager activityManager = WebProtegeClientInjector.get().getActivityManager();
    activityManager.setDisplay(applicationView);
    PlaceHistoryHandler placeHistoryHandler = WebProtegeClientInjector.get().getPlaceHistoryHandler();
    placeHistoryHandler.handleCurrentHistory();
}
Also used : ApplicationPresenter(edu.stanford.bmir.protege.web.client.app.ApplicationPresenter) WebProtegeActivityManager(edu.stanford.bmir.protege.web.client.place.WebProtegeActivityManager) ApplicationView(edu.stanford.bmir.protege.web.client.app.ApplicationView) PlaceHistoryHandler(com.google.gwt.place.shared.PlaceHistoryHandler)

Aggregations

PlaceHistoryHandler (com.google.gwt.place.shared.PlaceHistoryHandler)1 ApplicationPresenter (edu.stanford.bmir.protege.web.client.app.ApplicationPresenter)1 ApplicationView (edu.stanford.bmir.protege.web.client.app.ApplicationView)1 WebProtegeActivityManager (edu.stanford.bmir.protege.web.client.place.WebProtegeActivityManager)1