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
System.err.println("Called from:"); 
						
						
						new InvocationTargetException(null).printStackTrace();
					}
					if (throwable instanceof InvocationTargetException) {
						throw (InvocationTargetException) throwable;
					} else if (throwable instanceof InterruptedException) {
						throw (InterruptedException) throwable;
					} else if (
						throwable instanceof OperationCanceledException) {
						
						throw new InterruptedException(throwable.getMessage());
					} else {
						throw new InvocationTargetException(throwable);
					}	
				}
			}
		}
	}
	finally {
		modalLevel--;
	}
}
/**
 * Run a runnable.  Convert all thrown exceptions to 
 * either InterruptedException or InvocationTargetException
 */
private static void runInCurrentThread(IRunnableWithProgress runnable, IProgressMonitor progressMonitor) 
	throws InterruptedException, InvocationTargetException