public boolean activateServerPush(long timeout) throws InterruptedException { checkSeverPush("activate"); if (Events.inEventListener() && Executions.getCurrent().getDesktop() == this) throw new IllegalStateException("No need to invoke Executions.activate() in an event listener"); if (log.isDebugEnabled()) { log.debug("activateServerPush, timeout is [{}]", timeout); } return _spush.activate(timeout); }
if (!Events.inEventListener()) throw new SuspendNotAllowedException("doModal must be called in an event listener");