nameComposite.setFont(composite.getFont());
nameComposite.setLayout(new GridLayout(2, false));
nameComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
// text field for project vendor name
vendorField = new StringDialogField();
vendorField.setLabelText("Vendor name");
vendorField.setDialogFieldListener(this);
vendorField.doFillIntoGrid(nameComposite, 2);
LayoutUtil.setHorizontalGrabbing(vendorField.getTextControl(null));
// text field for project type
typeField = new StringDialogField();
typeField.setLabelText("Type");
typeField.setDialogFieldListener(this);
typeField.doFillIntoGrid(nameComposite, 2);
LayoutUtil.setHorizontalGrabbing(typeField.getTextControl(null));
ControlDecoration decoration = new ControlDecoration(typeField.getTextControl(), SWT.TOP | SWT.LEFT);
FieldDecoration indicator = FieldDecorationRegistry.getDefault().
getFieldDecoration(FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
decoration.setImage(indicator.getImage());
decoration.setDescriptionText(indicator.getDescription() + "(Ctrl+Space)");
decoration.setShowOnlyOnFocus(true);
new AutoCompleteField(typeField.getTextControl(), new TextContentAdapter(), ComposerConstants.TYPES);
// text field for project description
descriptionField = new StringDialogField();
descriptionField.setLabelText("Description");
descriptionField.setDialogFieldListener(this);
descriptionField.doFillIntoGrid(nameComposite, 2);
LayoutUtil.setHorizontalGrabbing(descriptionField.getTextControl(null));
// text field for project description
keywordField = new StringDialogField();
keywordField.setLabelText("Keywords");
keywordField.setDialogFieldListener(this);
keywordField.doFillIntoGrid(nameComposite, 2);
LayoutUtil.setHorizontalGrabbing(keywordField.getTextControl(null));
// text field for project description
licenseField = new StringDialogField();
licenseField.setLabelText("License");
licenseField.setDialogFieldListener(this);
licenseField.doFillIntoGrid(nameComposite, 2);
LayoutUtil.setHorizontalGrabbing(licenseField.getTextControl(null));