Bug 154398 [Dialogs] Javadoc - IconAndMessageDialog.createMessageArea assumes parent composite is using GridLayout
IconAndMessageDialog.createMessageArea assigns GridData objects as the layout data for the children of the parent composite. This mandates that the parent's layout is a GridLayout - which is unspecified in the Javadoc. This affects all callers of IconAndMessageDialog.createMessageArea as well, for example: ErrorDialog.createDialogArea MessageDialog.createDialogArea ProgressDialog.createDialogArea
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/IconAndMessageDialog.java
return getSWTImage(SWT.ICON_QUESTION);
	}
	/**
	 * Get an <code>Image</code> from the provide SWT image constant.
	 * 
	 * @param imageID
	 *            the SWT image constant
	 * @return image the image
	 */
	private Image getSWTImage(final int imageID) {
		Shell shell = getShell();
		final Display display;
		if (shell == null) {
			shell = getParentShell();
		}
		if (shell == null) {
			display = Display.getCurrent();
		} else {
			display = shell.getDisplay();
		}
		final Image[] image = new Image[1];
		display.syncExec(new Runnable() {
			public void run() {
				image[0] = display.getSystemImage(imageID);
			}
		});
		return image[0];
	}
}