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/window/ApplicationWindow.java
}
/* (non-Javadoc)
 * Method declared on IRunnableContext.
 */
public void run(final boolean fork, boolean cancelable, final IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException {
	try {
		operationInProgress = true;
		final StatusLineManager mgr = getStatusLineManager();
		if (mgr == null) {
			runnable.run(new NullProgressMonitor());
			return;
		}
		boolean cancelWasEnabled = mgr.isCancelEnabled();
	
		final Control contents = getContents();
		final Display display = contents.getDisplay();
		Shell shell = getShell();
		boolean contentsWasEnabled = contents.isEnabled();
		MenuManager manager = getMenuBarManager();
		Menu menuBar = null;
		if (manager != null) {
			menuBar = manager.getMenu();
			manager = null;
		}
		boolean menuBarWasEnabled = false;
		if (menuBar != null)
			menuBarWasEnabled = menuBar.isEnabled();
	
		Control toolbarControl = getToolBarControl();
		boolean toolbarWasEnabled = false;