Bug 53442 [Progress] New JFace API methods missing @since
I20040226 ProgressMonitorDialog has several new API methods that have been added since the 2.1 release, but are missing @since tags. The following API methods were added since 2.1: aboutToRun cancelPressed clearCursors decrementNestingDepth finishedRun getNestingDepth getOpenOnRun incrementNestingDepth open (overrides Window.open) setOpenOnRun
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/ProgressMonitorDialog.java
* Method declared on Window.
 */
/**
 * The <code>ProgressMonitorDialog</code> implementation of this method
 * only closes the dialog if there are no currently running runnables.
 */
public boolean close() {
	if (getNestingDepth() <= 0) {
		clearCursors();
		return super.close();
	}
	return false;
}
/**
 * Clear the cursors in the dialog.
 */
protected void clearCursors() {
	if (cancel != null && !cancel.isDisposed()) {
		cancel.setCursor(null);
	}
	Shell shell = getShell();
	if (shell != null && !shell.isDisposed()) {
		shell.setCursor(null);
	}
	if (arrowCursor != null)
		arrowCursor.dispose();
	if (waitCursor != null)
		waitCursor.dispose();
	arrowCursor = null;
	waitCursor = null;