protected final ComboDialogField fTemplateField;
public NameGroup() {
// text field for project name
fNameField = new StringDialogField();
fNameField.setLabelText(NewWizardMessages.NewJavaProjectWizardPageOne_NameGroup_label_text);
fNameField.setDialogFieldListener(this);
fPackageField = new StringDialogField();
fPackageField.setLabelText("Top level package name:");
fPackageField.setDialogFieldListener(this);
fTemplateField = new ComboDialogField(SWT.READ_ONLY);
fTemplateField.setLabelText("Project type:");
List<String> types = new ArrayList<String>();
for (ProjectType type : ProjectType.values()) {
types.add(type.getDisplayString());
}
fTemplateField.setItems(types.toArray(new String[types.size()]));
fTemplateField.selectItem(0);
fdescriptionField = new StringDialogField();
fdescriptionField.setLabelText("Description");
fdescriptionField.setDialogFieldListener(this);
fdescriptionField.setEnabled(false);
}