public void setProgressBarMaximun(final int count) { if (!dynamicTask && progressBar != null && !progressBar.isDisposed()) { progressBar .getDisplay() .asyncExec( new Runnable() { public void run() { progressBar.setMaximum(count); } }); } }
public synchronized void setProgressBarSelection(boolean last) { if (!dynamicTask && progressBar != null && !progressBar.isDisposed()) { progressBar .getDisplay() .asyncExec( new Runnable() { public void run() { progressBar.setSelection(taskRunnedCount); } }); } }