/*
  * (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();
 }
Ejemplo n.º 3
0
 public void setProgressBarMaximun(final int count) {
   if (!dynamicTask && progressBar != null && !progressBar.isDisposed()) {
     progressBar
         .getDisplay()
         .asyncExec(
             new Runnable() {
               public void run() {
                 progressBar.setMaximum(count);
               }
             });
   }
 }
Ejemplo n.º 4
0
 public synchronized void setProgressBarSelection(boolean last) {
   if (!dynamicTask && progressBar != null && !progressBar.isDisposed()) {
     progressBar
         .getDisplay()
         .asyncExec(
             new Runnable() {
               public void run() {
                 progressBar.setSelection(taskRunnedCount);
               }
             });
   }
 }