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
* @param dialogTitle the title to use for this dialog,
 *   or <code>null</code> to indicate that the default title should be used
 * @param message the message to show in this dialog, 
 *   or <code>null</code> to indicate that the error's message should be shown
 *   as the primary message
 * @param status the error to show to the user
 * @param displayMask the mask to use to filter the displaying of child items,
 *   as per <code>IStatus.matches</code>
 * @return the code of the button that was pressed that resulted in this dialog
 *     closing.  This will be <code>Dialog.OK</code> if the OK button was 
 * 	   pressed, or <code>Dialog.CANCEL</code> if this dialog's close window 
 *     decoration or the ESC key was used.
 * @see org.eclipse.core.runtime.IStatus#matches
 */
public static int openError(Shell parentShell, String title, String message, IStatus status, int displayMask) {
	ErrorDialog dialog = new ErrorDialog(parentShell, title, message, status, displayMask);
	return dialog.open();
}
/**
 * Populates the list using this error dialog's status object.
 * This walks the child stati of the status object and
 * displays them in a list. The format for each entry is
 *		status_path : status_message
 * If the status's path was null then it (and the colon)
 * are omitted.
 */
private void populateList(List list) {
	Iterator enum = statusList.iterator();
	while (enum.hasNext()) {
		IStatus childStatus = (IStatus) enum.next();