Bug 172655 [ErrorHandling] [StatusHandling] Hooking into JFace dialogs
bundles/org.eclipse.jface/src/org/eclipse/jface/util/Policy.java
* 
			 * @see org.eclipse.jface.util.ILogger#log(org.eclipse.core.runtime.IStatus)
			 */
			public void log(Shell parent, String title, IStatus status) {
				int dialogConstant = MessageDialog.NONE;
				if (status.getSeverity() == IStatus.ERROR) {
					dialogConstant = MessageDialog.ERROR;
				} else if (status.getSeverity() == IStatus.WARNING) {
					dialogConstant = MessageDialog.WARNING;
				} else if (status.getSeverity() == IStatus.INFO) {
					dialogConstant = MessageDialog.INFORMATION;
				}
				MessageDialog dialog = new MessageDialog(parent, title,
						null, 
						status.getMessage(), dialogConstant,
						new String[] { IDialogConstants.OK_LABEL }, 0); 
				
				
				dialog.open();
			}
		};
	}
	/**
	 * Sets the logger used by JFace to log errors.
	 * 
	 * @param logger
	 *            the logger to use, or <code>null</code> to use the default
	 *            logger
	 * @since 3.1
	 */