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
Point defaultSpacing = LayoutConstants.getSpacing();
		GridLayoutFactory.fillDefaults().margins(defaultMargins.x,
				defaultMargins.y * 3 / 2).spacing(defaultSpacing.x * 2,
				defaultSpacing.y).numColumns(getColumnCount()).applyTo(
				parent);
		GridDataFactory.fillDefaults().grab(true, true).applyTo(parent);
		createDialogAndButtonArea(parent);
		return parent;
	}
	/**
	 * Get the number of columns in the layout of the Shell of the dialog.
	 * 
	 * @return int
	 * @since 3.3
	 */
	int getColumnCount() {
		return 2;
	}
	/**
	 * Create the dialog area and the button bar for the receiver.
	 * 
	 * @param parent
	 */
	protected void createDialogAndButtonArea(Composite parent) {
		
		dialogArea = createDialogArea(parent);
		buttonBar = createButtonBar(parent);
		
		applyDialogFont(parent);
	}