/** * Create TitleArea * * @param parent * @return */ public Composite createTitleArea( Composite parent ) { Composite messageComposite = new Composite( parent, SWT.NONE ); GridData data = new GridData( GridData.FILL_BOTH ); messageComposite.setLayoutData( data ); FormLayout messageLayout = new FormLayout( ); messageComposite.setLayout( messageLayout ); messageArea = new DialogMessageArea( ); messageArea.createContents( messageComposite ); titleImage = new Label( messageComposite, SWT.LEFT ); FormData imageData = new FormData( ); imageData.right = new FormAttachment( 100 ); imageData.top = new FormAttachment( 0 ); imageData.bottom = new FormAttachment( 100 ); titleImage.setLayoutData( imageData ); FormData messageData = new FormData( ); messageData.left = new FormAttachment( 0, 0 ); messageData.right = new FormAttachment( titleImage, 100 ); messageData.bottom = new FormAttachment( titleImage, 0, SWT.BOTTOM ); messageData.top = new FormAttachment( 0, 0 ); messageArea.setTitleLayoutData( messageData ); messageArea.setMessageLayoutData( messageData ); return messageComposite; }