use of org.eclipse.ui.application.WorkbenchAdvisor in project translationstudio8 by heartsome.
the class Application method createUI.
@Override
public int createUI() {
Display display = PlatformUI.createDisplay();
WorkbenchAdvisor advisor = new ApplicationWorkbenchAdvisor();
return PlatformUI.createAndRunWorkbench(display, advisor);
}
use of org.eclipse.ui.application.WorkbenchAdvisor 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);
}
Aggregations