Ejemplo n.º 1
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.º 2
0
 public synchronized void setProgressBarSelection(boolean last) {
   if (!dynamicTask && progressBar != null && !progressBar.isDisposed()) {
     progressBar
         .getDisplay()
         .asyncExec(
             new Runnable() {
               public void run() {
                 progressBar.setSelection(taskRunnedCount);
               }
             });
   }
 }