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
titleImage = new Label(parent, SWT.CENTER);
	titleImage.setBackground(background);
	titleImage.setImage(JFaceResources.getImage(DLG_IMG_TITLE_BANNER));
	
	FormData imageData = new FormData();
	imageData.top = new FormAttachment(0,verticalSpacing);
	imageData.right = new FormAttachment(100,-1 * horizontalSpacing);
	titleImage.setLayoutData(imageData);
	
	
	titleLabel = new Label(parent, SWT.LEFT);
	JFaceColors.setColors(titleLabel,foreground,background);
	titleLabel.setFont(JFaceResources.getBannerFont());
	titleLabel.setText(" ");
	FormData titleData = new FormData();
	titleData.top = new FormAttachment(0,verticalSpacing);
	titleData.right = new FormAttachment(titleImage);
	titleData.left = new FormAttachment(0,horizontalSpacing);
	titleLabel.setLayoutData(titleData);
	
	
	messageImageLabel = new Label(parent, SWT.CENTER);
	messageImageLabel.setBackground(background);
	
	messageLabel = new Text(parent, SWT.WRAP | SWT.READ_ONLY);
	JFaceColors.setColors(messageLabel,foreground,background);
	messageLabel.setText(" \n "); 
	messageLabel.setFont(JFaceResources.getDialogFont());