Bug 52730 [Dialogs] TitleAreaDialog wrong doc for createDialogArea
/** * Creates and returns the contents of the upper part * of this dialog (above the button bar). * <p> * The <code>Dialog</code> implementation of this framework method * creates and returns a new <code>Composite</code> with * standard margins and spacing. Subclasses should override. * </p> * * @param the parent composite to contain the dialog area * @return the dialog area control */ protected Control createDialogArea(Composite parent) @@@@ The composite created by this method does _not_ have standard margings and spacing but 0-width margins and spacing.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java
titleImageLargest = titleY > labelY;
}
	
/**
 * Set the layout values for the messageLabel, messageImageLabel and 
 * fillerLabel for the case where there is a normal message.
 * @param verticalSpacing int The spacing between widgets on the vertical axis.
 * @param horizontalSpacing int The spacing between widgets on the horizontal axis.
 */
private void setLayoutsForNormalMessage(
	int verticalSpacing,
	int horizontalSpacing) {
	FormData messageImageData = new FormData();
	messageImageData.top = new FormAttachment(titleLabel,verticalSpacing);
	messageImageData.left = new FormAttachment(0,H_GAP_IMAGE);
	messageImageLabel.setLayoutData(messageImageData);
	
	FormData messageLabelData = new FormData();
	messageLabelData.top = new FormAttachment(titleLabel,verticalSpacing);
	messageLabelData.right = new FormAttachment(titleImage);
	messageLabelData.left = new FormAttachment(messageImageLabel,horizontalSpacing);
	
	if(titleImageLargest)
		messageLabelData.bottom = new FormAttachment(titleImage,0,SWT.BOTTOM);
		
	messageLabel.setLayoutData(messageLabelData);
	
	FormData fillerData = new FormData();
	fillerData.left = new FormAttachment(0,horizontalSpacing);
	fillerData.top = new FormAttachment(messageImageLabel,0);