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
*/
private void setMessageBackgrounds(boolean showingError){
	
	Color color;
	if(showingError)
		color = errorMsgAreaBackground;
	else
		color = normalMsgAreaBackground;
		
	messageLabel.setBackground(color);
	messageImageLabel.setBackground(color);
	bottomFillerLabel.setBackground(color);
	leftFillerLabel.setBackground(color); 
}
/**
 * Reset the attachment of the workArea to now attach
 * to top as the top control.
 * @param top
 */
private void resetWorkAreaAttachments(Control top) {
	FormData childData = new FormData();
	childData.top = new FormAttachment(top);
	childData.right = new FormAttachment(100, 0);
	childData.left = new FormAttachment(0, 0);
	childData.bottom = new FormAttachment(100, 0);
	workArea.setLayoutData(childData);
}
		
}