示例#1
0
 /**
  * Implements <code>IProgressMonitor.beginTask</code>.
  *
  * @see IProgressMonitor#beginTask(java.lang.String, int)
  */
 public void beginTask(String name, int totalWork) {
   fTaskName = name;
   fSubTaskName = ""; // $NON-NLS-1$
   updateLabel();
   if (totalWork == IProgressMonitor.UNKNOWN || totalWork == 0) {
     fProgressIndicator.beginAnimatedTask();
   } else {
     fProgressIndicator.beginTask(totalWork);
   }
   if (fToolBar != null && !fToolBar.isDisposed()) {
     fToolBar.setVisible(true);
     fToolBar.setFocus();
   }
 }
示例#2
0
 /* (non-Javadoc)
  * @see org.eclipse.core.runtime.IProgressMonitorWithBlocking#setBlocked(org.eclipse.core.runtime.IStatus)
  */
 public void setBlocked(IStatus reason) {
   blockedStatus = reason;
   updateLabel();
 }
示例#3
0
 /* (non-Javadoc)
  * @see org.eclipse.core.runtime.IProgressMonitorWithBlocking#clearBlocked()
  */
 public void clearBlocked() {
   blockedStatus = null;
   updateLabel();
 }
示例#4
0
 /*
  *  (non-Javadoc)
  * @see org.eclipse.core.runtime.IProgressMonitor#subTask(java.lang.String)
  */
 public void subTask(String name) {
   fSubTaskName = name;
   updateLabel();
 }
示例#5
0
 /*
  *  (non-Javadoc)
  * @see org.eclipse.core.runtime.IProgressMonitor#setTaskName(java.lang.String)
  */
 public void setTaskName(String name) {
   fTaskName = name;
   updateLabel();
 }