List of usage examples for org.eclipse.jface.dialogs TitleAreaDialog setTitle
public void setTitle(String newTitle)
From source file:org.eclipse.e4.tools.ui.designer.wizards.part.NewOptionsPartWizardPage.java
License:Open Source License
protected void handleDataContextProperties() { TitleAreaDialog dialog = new TitleAreaDialog(getShell()) { public void create() { setShellStyle(getShellStyle() | SWT.RESIZE); super.create(); }//w ww .j ava 2s. c o m protected Control createDialogArea(Composite parent) { Composite control = (Composite) super.createDialogArea(parent); Composite newControl = new Composite(control, SWT.NONE); newControl.setLayoutData(new GridData(GridData.FILL_BOTH)); newControl.setLayout(new GridLayout()); Composite composite = PropertiesComposite.create(newControl, dataContext); composite.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create()); return control; } protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); } }; dialog.create(); dialog.setTitle("Properties"); dialog.getShell().setText("Properties Configure Dialog"); dialog.setMessage("Configure properties and master value."); dialog.open(); }