252253254255256257258259260261262
try { runningTasks.add(task); } finally { runningTasksLock.unlock(); } IProgressListener l = new ProgressAdapter() { @Override public void progress(Object source, float progress) { fireTaskProgress(task, progress); }
499500501502503504505506507508509
setTaskInfo(getName() + "..."); BasicUtilities.invokeAndWaitOnEDT(new Runnable() { @Override public void run() { p.applyPreferences(new IProgressListener() { @Override public void finished(Object source) { fireFinished(); }