myBindingContext = BindingFactory.createContext(); myBindingContext.bind(myNameText, new Property(myEntity, EOEntity.NAME), null); myBindingContext.bind(myExternalNameText, new Property(myEntity, EOEntity.EXTERNAL_NAME), null); myBindingContext.bind(myClassNameText, new Property(myEntity, EOEntity.CLASS_NAME), null); myBindingContext.bind(myRestrictingQualifierText, new Property(myEntity, EOEntity.RESTRICTING_QUALIFIER), null); myBindingContext.bind(myAbstractButton, new Property(myEntity, EOEntity.ABSTRACT_ENTITY), null);  myParentEntityComboViewer.setInput(myEntity); myParentEntityBinding = new ComboViewerBinding(myParentEntityComboViewer, myEntity, EOEntity.PARENT, myEntity.getModel(), EOModel.ENTITIES, EOEntityListContentProvider.BLANK_ENTITY);
myParentEntityComboViewer.setInput(myEntity); myParentEntityBinding = new ComboViewerBinding(myParentEntityComboViewer, myEntity, EOEntity.PARENT, myEntity.getModel(), EOModel.ENTITIES, EOEntityListContentProvider.BLANK_ENTITY); }
  public void setInput(IWorkbenchPart _part, ISelection _selection) {    super.setInput(_part, _selection);    Object selectedObject = ((IStructuredSelection) _selection).getFirstElement();    EOEntity entity = (EOEntity) selectedObject;    if (!ComparisonUtils.equals(entity, myEntity)) {      disposeBindings();      myEntity = entity;      myBindingContext = BindingFactory.createContext();      myBindingContext.bind(myNameText, new Property(myEntity, EOEntity.NAME), null);      myBindingContext.bind(myExternalNameText, new Property(myEntity, EOEntity.EXTERNAL_NAME), null);      myBindingContext.bind(myClassNameText, new Property(myEntity, EOEntity.CLASS_NAME), null);      myBindingContext.bind(myRestrictingQualifierText, new Property(myEntity, EOEntity.RESTRICTING_QUALIFIER), null);      myBindingContext.bind(myAbstractButton, new Property(myEntity, EOEntity.ABSTRACT_ENTITY), null);      myParentEntityComboViewer.setInput(myEntity);      myParentEntityBinding = new ComboViewerBinding(myParentEntityComboViewer, myEntity, EOEntity.PARENT, myEntity.getModel(), EOModel.ENTITIES, EOEntityListContentProvider.BLANK_ENTITY);    }  }