if (mySelectedEntity != null) { mySelectedEntity.addPropertyChangeListener(EOEntity.ATTRIBUTES, myAttributeAndRelationshipListener); mySelectedEntity.addPropertyChangeListener(EOEntity.RELATIONSHIPS, myAttributeAndRelationshipListener); }
  public void setSelectedEntity(EOEntity _selectedEntity) {    if (!ComparisonUtils.equals(mySelectedEntity, _selectedEntity)) {      mySelectedEntity = _selectedEntity;      myEntitiesTableEditor.setSelectedEntity(_selectedEntity);      myEntityEditor.setEntity(_selectedEntity);      if (_selectedEntity == null) {        EOModelEditor.this.setPageText(EOModelEditor.EOENTITY_PAGE, Messages.getString("EOModelEditor.noEntitySelected"));      }      else {        String entityName = _selectedEntity.getName();        if (entityName == null) {          entityName = "?";        }        EOModelEditor.this.setPageText(EOModelEditor.EOENTITY_PAGE, entityName);      }      updatePartName();    }  }