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
populateList(list, childStatus, 0);
	}
}
private void populateList(List list, IStatus status, int nesting) {
	if (!status.matches(displayMask)) {
		return;
	}
	StringBuffer sb = new StringBuffer();
	for (int i = 0; i < nesting; i++) {
		sb.append("  "); 
	}
	sb.append(status.getMessage());
	list.add(sb.toString());
	IStatus[] children = status.getChildren();
	for (int i = 0; i < children.length; i++) {
		populateList(list, children[i], nesting + 1);
	}
}
/**
 * Returns whether the given status object should be displayed.
 *
 * @param status a status object
 * @param mask a mask as per <code>IStatus.matches</code>
 * @return <code>true</code> if the given status should be displayed, 
 *   and <code>false</code> otherwise
 * @see org.eclipse.core.runtime.IStatus#matches
 */
protected static boolean shouldDisplay(IStatus status, int mask) {
	IStatus[] children = status.getChildren();
	if (children == null || children.length == 0) {