/** * {@link DisplayTools#execute(Runnable)} seems to work OK; but using {@link * DisplayTools#syncExec(Runnable)} can somtimes make things more predictable when debugging, at * the risk of deadlocks. */ private void execute(Runnable r) { DisplayTools.execute(r); // SWTUtil.syncExec(r); }
@Override protected IStatus run(IProgressMonitor monitor) { DisplayTools.asyncExec(this.setJpaSelectionRunnable); return Status.OK_STATUS; }