myPrototypeComboViewer.setInput(_attribute); myPrototypeBinding = new ComboViewerBinding(myPrototypeComboViewer, myAttribute, EOAttribute.PROTOTYPE, myAttribute.getEntity().getModel(), EOModel.ENTITIES, EOEntityListContentProvider.BLANK_ENTITY);
  public void setAttribute(EOAttribute _attribute) {    if (!ComparisonUtils.equals(_attribute, myAttribute)) {      if (myBindingContext != null) {        myBindingContext.dispose();      }      if (myAttribute != null) {        myAttribute.removePropertyChangeListener(EOAttribute.DATA_TYPE, myDataTypeChangeListener);      }      if (myDataTypeBinding != null) {        myDataTypeBinding.dispose();      }      myAttribute = _attribute;      if (myAttribute != null) {        //myArgumentTypeComboViewer.setInput(myAttribute);        myBindingContext = BindingFactory.createContext();        myBindingContext.bind(myNameText, new Property(myAttribute, EOAttribute.NAME), null);        myBindingContext.bind(myColumnNameText, new Property(myAttribute, EOAttribute.COLUMN_NAME), null);        myBindingContext.bind(myDefinitionText, new Property(myAttribute, EOAttribute.DEFINITION), null);        myBindingContext.bind(myExternalTypeText, new Property(myAttribute, EOAttribute.EXTERNAL_TYPE), null);        myBindingContext.bind(myAllowNullsButton, new Property(myAttribute, EOAttribute.ALLOWS_NULL), null);        myDataTypeBinding = new ComboViewerBinding(myDataTypeComboViewer, myAttribute, EOAttribute.DATA_TYPE, null, null, null);        if (myAttribute.getDefinition() == null) {          myDerivedComboViewer.setSelection(new StructuredSelection(EOAttributeBasicEditorSection.COLUMN));        }        else {          myDerivedComboViewer.setSelection(new StructuredSelection(EOAttributeBasicEditorSection.DERIVED));        }      }      Iterator dataTypePanelsIter = myDataTypeToDataTypePanel.values().iterator();      while (dataTypePanelsIter.hasNext()) {        IDataTypePanel dataTypePanel = (IDataTypePanel) dataTypePanelsIter.next();        dataTypePanel.setAttribute(_attribute);      }      updateAttributePanel();      if (myAttribute != null) {        myAttribute.addPropertyChangeListener(EOAttribute.DATA_TYPE, myDataTypeChangeListener);      }    }  }