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
*/
protected List createDropDownList(Composite parent) {
	
	list = new List(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI);
	
	populateList(list);
		
	GridData data = new GridData(
		GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL |
		GridData.VERTICAL_ALIGN_FILL | GridData.GRAB_VERTICAL);
	data.heightHint = list.getItemHeight() * LIST_ITEM_COUNT;
	data.horizontalSpan = 2;
	list.setLayoutData(data);
	listCreated = true;
	return list;
}
/* (non-Javadoc)
 * Method declared on Window.
 */
/**
 * Extends <code>Window.open()</code>.
 * Opens an error dialog to display the error.
 * If you specified a mask to filter the displaying of these
 * children, the error dialog will only be displayed if there is at
 * least one child status matching the mask.
 */
public int open() {
	if (shouldDisplay(status, displayMask)) {
		return super.open();
	}