getWidgetFactory().createCLabel(topForm, Messages.getString("EOAttribute." + EOAttribute.PROTOTYPE), SWT.NONE); Combo prototypeCombo = new Combo(topForm, SWT.BORDER | SWT.FLAT | SWT.READ_ONLY); myPrototypeComboViewer = new ComboViewer(prototypeCombo); myPrototypeComboViewer.setLabelProvider(new EOPrototypeListLabelProvider()); myPrototypeComboViewer.setContentProvider(new EOPrototypeListContentProvider()); GridData prototypeComboLayoutData = new GridData(GridData.FILL_HORIZONTAL); prototypeCombo.setLayoutData(prototypeComboLayoutData);
  public void createControls(Composite _parent, TabbedPropertySheetPage _tabbedPropertySheetPage) {    super.createControls(_parent, _tabbedPropertySheetPage);    Composite form = getWidgetFactory().createFlatFormComposite(_parent);    FormLayout formLayout = new FormLayout();    form.setLayout(formLayout);    Composite topForm = getWidgetFactory().createPlainComposite(form, SWT.NONE);    FormData topFormData = new FormData();    topFormData.top = new FormAttachment(0, 5);    topFormData.left = new FormAttachment(0, 5);    topFormData.right = new FormAttachment(100, -5);    topForm.setLayoutData(topFormData);    GridLayout topFormLayout = new GridLayout();    topFormLayout.numColumns = 2;    topForm.setLayout(topFormLayout);    getWidgetFactory().createCLabel(topForm, Messages.getString("EOAttribute." + EOAttribute.NAME), SWT.NONE); //$NON-NLS-1$    myNameText = new Text(topForm, SWT.BORDER);    GridData nameFieldLayoutData = new GridData(GridData.FILL_HORIZONTAL);    myNameText.setLayoutData(nameFieldLayoutData);    Combo derivedCombo = new Combo(topForm, SWT.BORDER | SWT.FLAT | SWT.READ_ONLY);    myDerivedComboViewer = new ComboViewer(derivedCombo);    //myDerivedComboViewer.setLabelProvider(new EODerivedLabelProvider());    myDerivedComboViewer.setContentProvider(new EODerivedContentProvider());    myDerivedComboViewer.setInput(new String[] { EOAttributeBasicEditorSection.COLUMN, EOAttributeBasicEditorSection.DERIVED });    myDerivedComboViewer.addSelectionChangedListener(new ColumnDerivedChangeListener());    GridData derivedComboLayoutData = new GridData(GridData.FILL_HORIZONTAL);    derivedCombo.setLayoutData(derivedComboLayoutData);    myColumnNameDefinitionComposite = getWidgetFactory().createPlainComposite(topForm, SWT.NONE);    GridData columnNameDefinitionFieldLayoutData = new GridData(GridData.FILL_HORIZONTAL);    myColumnNameDefinitionComposite.setLayoutData(columnNameDefinitionFieldLayoutData);    myColumnNameDefinitionLayout = new StackLayout();    myColumnNameDefinitionComposite.setLayout(myColumnNameDefinitionLayout);    getWidgetFactory().createCLabel(myColumnNameDefinitionComposite, Messages.getString("EOAttribute." + EOAttribute.COLUMN_NAME), SWT.NONE); //$NON-NLS-1$    myColumnNameText = new Text(myColumnNameDefinitionComposite, SWT.BORDER);    GridData externalNameFieldLayoutData = new GridData(GridData.FILL_HORIZONTAL);    myColumnNameText.setLayoutData(externalNameFieldLayoutData);    getWidgetFactory().createCLabel(myColumnNameDefinitionComposite, Messages.getString("EOAttribute." + EOAttribute.DEFINITION), SWT.NONE); //$NON-NLS-1$    myDefinitionText = new Text(myColumnNameDefinitionComposite, SWT.BORDER);    GridData definitionFieldLayoutData = new GridData(GridData.FILL_HORIZONTAL);    myDefinitionText.setLayoutData(definitionFieldLayoutData);    myColumnNameDefinitionLayout.topControl = myColumnNameText;    getWidgetFactory().createCLabel(topForm, Messages.getString("EOAttribute." + EOAttribute.EXTERNAL_TYPE), SWT.NONE); //$NON-NLS-1$    myExternalTypeText = new Text(topForm, SWT.BORDER);    GridData externalTypeFieldLayoutData = new GridData(GridData.FILL_HORIZONTAL);    myExternalTypeText.setLayoutData(externalTypeFieldLayoutData);    getWidgetFactory().createCLabel(topForm, Messages.getString("EOAttribute." + EOAttribute.ALLOWS_NULL), SWT.NONE); //$NON-NLS-1$    myAllowNullsButton = new Button(topForm, SWT.CHECK);    getWidgetFactory().createCLabel(topForm, Messages.getString("EOAttribute." + EOAttribute.PROTOTYPE), SWT.NONE); //$NON-NLS-1$    Combo prototypeCombo = new Combo(topForm, SWT.BORDER | SWT.FLAT | SWT.READ_ONLY);    myPrototypeComboViewer = new ComboViewer(prototypeCombo);    myPrototypeComboViewer.setLabelProvider(new EOPrototypeListLabelProvider());    myPrototypeComboViewer.setContentProvider(new EOPrototypeListContentProvider());    GridData prototypeComboLayoutData = new GridData(GridData.FILL_HORIZONTAL);    prototypeCombo.setLayoutData(prototypeComboLayoutData);    getWidgetFactory().createCLabel(topForm, Messages.getString("EOAttribute." + EOAttribute.DATA_TYPE), SWT.NONE); //$NON-NLS-1$    Combo dataTypeCombo = new Combo(topForm, SWT.BORDER | SWT.FLAT | SWT.READ_ONLY);    myDataTypeComboViewer = new ComboViewer(dataTypeCombo);    myDataTypeComboViewer.setLabelProvider(new EODataTypeLabelProvider());    myDataTypeComboViewer.setContentProvider(new EODataTypeContentProvider());    myDataTypeComboViewer.setSorter(new ViewerSorter());    myDataTypeComboViewer.setInput(EODataType.DATA_TYPES);    GridData dataTypeComboLayoutData = new GridData(GridData.FILL_HORIZONTAL);    dataTypeCombo.setLayoutData(dataTypeComboLayoutData);    myDataTypePanel = getWidgetFactory().createPlainComposite(form, SWT.NONE);    FormData dataTypeFormData = new FormData();    dataTypeFormData.top = new FormAttachment(topForm, 10);    dataTypeFormData.left = new FormAttachment(0, 5);    dataTypeFormData.right = new FormAttachment(100, -5);    myDataTypePanel.setLayoutData(dataTypeFormData);    myDataTypeStackLayout = new StackLayout();    myDataTypePanel.setLayout(myDataTypeStackLayout);    myDataTypeToDataTypePanel = new HashMap();    myDataTypeToDataTypePanel.put(EODataType.CUSTOM, new CustomDataTypePanel(myDataTypePanel, SWT.NONE, getWidgetFactory()));    myDataTypeToDataTypePanel.put(EODataType.DATA, new DataDataTypePanel(myDataTypePanel, SWT.NONE, getWidgetFactory()));    myDataTypeToDataTypePanel.put(EODataType.DATE, new DateDataTypePanel(myDataTypePanel, SWT.NONE, getWidgetFactory()));    myDataTypeToDataTypePanel.put(EODataType.DECIMAL_NUMBER, new DecimalNumberDataTypePanel(myDataTypePanel, SWT.NONE, getWidgetFactory()));    myDataTypeToDataTypePanel.put(EODataType.DOUBLE, new DoubleDataTypePanel(myDataTypePanel, SWT.NONE, getWidgetFactory()));    myDataTypeToDataTypePanel.put(EODataType.INTEGER, new IntegerDataTypePanel(myDataTypePanel, SWT.NONE, getWidgetFactory()));    myDataTypeToDataTypePanel.put(EODataType.STRING, new StringDataTypePanel(myDataTypePanel, SWT.NONE, getWidgetFactory()));    Iterator dataTypePanelsIter = myDataTypeToDataTypePanel.values().iterator();    while (dataTypePanelsIter.hasNext()) {      Composite dataTypePanel = (Composite) dataTypePanelsIter.next();      dataTypePanel.setBackground(myDataTypePanel.getBackground());      getWidgetFactory().paintBordersFor(dataTypePanel);    }  }