/** * 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(); } }
/* (non-Javadoc) * @see org.eclipse.core.runtime.IProgressMonitorWithBlocking#setBlocked(org.eclipse.core.runtime.IStatus) */ public void setBlocked(IStatus reason) { blockedStatus = reason; updateLabel(); }
/* (non-Javadoc) * @see org.eclipse.core.runtime.IProgressMonitorWithBlocking#clearBlocked() */ public void clearBlocked() { blockedStatus = null; updateLabel(); }
/* * (non-Javadoc) * @see org.eclipse.core.runtime.IProgressMonitor#subTask(java.lang.String) */ public void subTask(String name) { fSubTaskName = name; updateLabel(); }
/* * (non-Javadoc) * @see org.eclipse.core.runtime.IProgressMonitor#setTaskName(java.lang.String) */ public void setTaskName(String name) { fTaskName = name; updateLabel(); }