Bug 2801 [Dialogs] DCR: ErrorDialog should not always show the error icon (1GJU7TK)
The class org.eclipse.jface.dialogs.ErrorDialog is used to display errors contained in an IStatus. The problem with the dialog is that it shows an error icon (red/cross) even though IStatus only has warnings or infos. The dialog would be more usable if the icon would correspond to the severity of IStatus and/or the dialog would offer to specify the image type (error, warning, info). NOTES:
bundles/org.eclipse.ui.workbench/extensions/org/eclipse/jface/dialogs/ErrorDialog.java
this.message = message == null ?
		status.getMessage():
		JFaceResources.format("Reason", new Object[] {message,  status.getMessage()}); 
	this.status = status;
	statusList = Arrays.asList(status.getChildren());
	this.displayMask = displayMask;
	setShellStyle(SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL);
}
/* (non-Javadoc)
 * Method declared on Dialog.
 * Handles the pressing of the Ok or Details button in this dialog.
 * If the Ok button was pressed then close this dialog.  If the Details
 * button was pressed then toggle the displaying of the error details area.
 * Note that the Details button will only be visible if the error being
 * displayed specifies child details.
 */
protected void buttonPressed(int id) {
	if (id == IDialogConstants.DETAILS_ID) {  
		toggleDetailsArea();
	} else {
		super.buttonPressed(id);
	} 
}
/* (non-Javadoc)
 * Method declared in Window.
 */
protected void configureShell(Shell shell) {
	super.configureShell(shell);
	shell.setText(title);
}