Bug 168301 [ErrorHandling] JFace SafeRunnable should use new error handling
bundles/org.eclipse.jface/src/org/eclipse/jface/util/SafeRunnable.java
private static SafeRunnableDialog dialog;
	/**
	 * Creates a new instance of SafeRunnable with a default error message.
	 */
	public SafeRunnable() {
		
	}
	/**
	 * Creates a new instance of SafeRunnable with the given error message.
	 * 
	 * @param message
	 *            the error message to use
	 */
	public SafeRunnable(String message) {
		this.message = message;
	}
	
	/* (non-Javadoc)
	 * @see org.eclipse.core.runtime.ISafeRunnable#handleException(java.lang.Throwable)
	 */
	public void handleException(Throwable e) {
		
		
		if (!ignoreErrors) {
			if (message == null)
				message = JFaceResources.getString("SafeRunnable.errorMessage"); 
			final IStatus status = new Status(IStatus.ERROR, Policy.JFACE, message,e);
			Runnable runnable = new Runnable() {
				public void run() {
					if (dialog == null || dialog.getShell().isDisposed()) {