示例#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);
               }
             });
   }
 }
示例#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);
               }
             });
   }
 }