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/operation/ModalContext.java
{
	try {
		if (runnable != null)
			runnable.run(progressMonitor);
	} catch (InvocationTargetException e) {
		throw e;
	} catch (InterruptedException e) {
		throw e;
	} catch (OperationCanceledException e) {
		throw new InterruptedException();
	} catch (ThreadDeath e) {
		
		throw e;
	} catch (RuntimeException e) {
		throw new InvocationTargetException(e);
	} catch (Error e) {
		throw new InvocationTargetException(e);
	}
}
/**
 * Sets whether ModalContext is running in debug mode.
 *
 * @param debugMode <code>true</code> for debug mode, 
 *  and <code>false</code> for normal mode (the default)
 */
public static void setDebugMode(boolean debugMode) {
	debug = debugMode;
}
}