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
GridData childData = new GridData(GridData.FILL_BOTH);
	childData.horizontalSpan = 2;
	composite.setLayoutData(childData);
	composite.setFont(parent.getFont());
	return composite;
}
/*
 * @see IconAndMessageDialog#createDialogAndButtonArea(Composite)
 */
protected void createDialogAndButtonArea(Composite parent) {
	
	super.createDialogAndButtonArea(parent);
	if(this.dialogArea instanceof Composite){
		
		Composite dialogComposite = (Composite) dialogArea;
		if(dialogComposite.getChildren().length == 0)
			new Label(dialogComposite,SWT.NULL);
	}
}
/*
 * @see IconAndMessageDialog#getImage()
 */
protected Image getImage() {
	return JFaceResources.getImageRegistry().get(DLG_IMG_ERROR);
}
/**
 * Create this dialog's drop-down list component.
 *
 * @param parent the parent composite
 * @return the drop-down list component