/* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.AnimationItem#animationStart() */ @Override void animationStart() { super.animationStart(); animationRunning = true; if (bar.isDisposed()) { return; } bar.setVisible(true); refresh(); }
/* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.AnimationItem#animationDone() */ @Override void animationDone() { super.animationDone(); animationRunning = false; if (bar.isDisposed()) { return; } bar.setVisible(false); refresh(); }
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); } }); } }