Search in sources :

Example 1 with SessionStoreListener

use of org.eclipse.rwt.service.SessionStoreListener in project translationstudio8 by heartsome.

the class Application method createUI.

public int createUI() {
    final Display display = PlatformUI.createDisplay();
    UICallBack.activate(String.valueOf(display.hashCode()));
    RWT.getSessionStore().addSessionStoreListener(new SessionStoreListener() {

        public void beforeDestroy(SessionStoreEvent event) {
            UICallBack.deactivate(String.valueOf(display.hashCode()));
        }
    });
    WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor();
    return PlatformUI.createAndRunWorkbench(display, advisor);
}
Also used : WorkbenchAdvisor(org.eclipse.ui.application.WorkbenchAdvisor) ApplicationWorkbenchAdvisor(net.heartsome.cat.convert.ui.ApplicationWorkbenchAdvisor) SessionStoreListener(org.eclipse.rwt.service.SessionStoreListener) SessionStoreEvent(org.eclipse.rwt.service.SessionStoreEvent) ApplicationWorkbenchAdvisor(net.heartsome.cat.convert.ui.ApplicationWorkbenchAdvisor) Display(org.eclipse.swt.widgets.Display)

Aggregations

ApplicationWorkbenchAdvisor (net.heartsome.cat.convert.ui.ApplicationWorkbenchAdvisor)1 SessionStoreEvent (org.eclipse.rwt.service.SessionStoreEvent)1 SessionStoreListener (org.eclipse.rwt.service.SessionStoreListener)1 Display (org.eclipse.swt.widgets.Display)1 WorkbenchAdvisor (org.eclipse.ui.application.WorkbenchAdvisor)1