Bug 29163 SafeRunnable needs to be accessible in JFace
We need to be able to access the SafeRunnable in JFace in order that some error protection can be added to preferences and properties dialogs.
bundles/org.eclipse.ui.workbench/extensions/org/eclipse/jface/wizard/WizardDialog.java
}
/**
 * Checks whether it is alright to close this wizard dialog
 * and performed standard cancel processing. If there is a
 * long running operation in progress, this method posts an
 * alert message saying that the wizard cannot be closed.
 * 
 * @return <code>true</code> if it is alright to close this dialog, and
 *  <code>false</code> if it is not
 */
private boolean okToClose() {
	if (activeRunningOperations > 0) {
		synchronized (this) {
			windowClosingDialog = createWizardClosingDialog();
		}	
		windowClosingDialog.open();
		synchronized (this) {
			windowClosingDialog = null;
		}
		return false;
	}
	
	return wizard.performCancel();
}
/**
 * Restores the enabled/disabled state of the given control.
 *
 * @param w the control
 * @param h the map (key type: <code>String</code>, element type:
 *   <code>Boolean</code>)