use of org.adempiere.webui.component.DrillCommand in project adempiere by adempiere.
the class AdempiereWebUI method onCreate.
public void onCreate() {
Properties ctx = Env.getCtx();
langSession = Env.getContext(ctx, Env.LANGUAGE);
SessionManager.setSessionApplication(this);
Session session = Executions.getCurrent().getDesktop().getSession();
if (session.getAttribute(SessionContextListener.SESSION_CTX) == null || !SessionManager.isUserLoggedIn(ctx)) {
// logs in.
if (ThemeUtils.setSystemDefaultTheme()) {
return;
}
;
ThemeUtils.addBrowserIconAndTitle(this.getPage());
loginDesktop = new WLogin(this);
loginDesktop.createPart(this.getPage());
} else {
loginCompleted();
}
/* TODO-evenos: Check if this works correctly, its copied from idempiere */
Executions.getCurrent().getDesktop().enableServerPush(true);
Executions.getCurrent().getDesktop().addListener(new DrillCommand());
Executions.getCurrent().getDesktop().addListener(new TokenCommand());
Executions.getCurrent().getDesktop().addListener(new ZoomCommand());
eventThreadEnabled = Executions.getCurrent().getDesktop().getWebApp().getConfiguration().isEventThreadEnabled();
}
Aggregations