Bug 200252 [JFace] Use logger instead of printStackTrace() in SafeRunnable
SafeRunnable will print a stack trace to the console when running standalone. I would like to change this to use the logger if available.
bundles/org.eclipse.jface/src/org/eclipse/jface/util/SafeRunnable.java
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()) {
						dialog = new SafeRunnableDialog(status);
						dialog.create();
						dialog.getShell().addDisposeListener(
								new DisposeListener() {
									public void widgetDisposed(DisposeEvent e) {
										dialog = null;
									}
								});
						dialog.open();
					} else {
						dialog.addStatus(status);
						dialog.refresh();
					}
				}
			};
			if (Display.getCurrent() != null) {
				runnable.run();
			} else {
				Display.getDefault().asyncExec(runnable);
			}
		}
	}
	/**
	 * Flag to avoid interactive error dialogs during automated testing.