/**
  * {@inheritDoc}
  *
  * @see com.github.lbroudoux.dsl.eip.parts.RouterPropertiesEditionPart#setType(Enumerator
  *     newValue)
  */
 public void setType(Enumerator newValue) {
   type.modelUpdating(new StructuredSelection(newValue));
   boolean eefElementEditorReadOnlyState = isReadOnly(EipViewsRepository.Router.Properties.type);
   if (eefElementEditorReadOnlyState && type.isEnabled()) {
     type.setEnabled(false);
     type.setToolTipText(EipMessages.Router_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !type.isEnabled()) {
     type.setEnabled(true);
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see net.certware.verification.checklist.parts.ItemPropertiesEditionPart#setResult(Enumerator
  *     newValue)
  */
 public void setResult(Enumerator newValue) {
   result.modelUpdating(new StructuredSelection(newValue));
   boolean eefElementEditorReadOnlyState =
       isReadOnly(ChecklistViewsRepository.Item.Properties.result);
   if (eefElementEditorReadOnlyState && result.isEnabled()) {
     result.setEnabled(false);
     result.setToolTipText(ChecklistMessages.Item_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !result.isEnabled()) {
     result.setEnabled(true);
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see org.obeonetwork.graal.parts.TransitionPropertiesEditionPart#setKind(Enumerator newValue)
  */
 public void setKind(Enumerator newValue) {
   kind.modelUpdating(new StructuredSelection(newValue));
   boolean eefElementEditorReadOnlyState =
       isReadOnly(GraalViewsRepository.Transition.Properties.kind);
   if (eefElementEditorReadOnlyState && kind.isEnabled()) {
     kind.setEnabled(false);
     kind.setToolTipText(GraalMessages.Transition_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !kind.isEnabled()) {
     kind.setEnabled(true);
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.environment.parts.BindingElementPropertiesEditionPart#setBoundElement(Object
  *     newValue)
  */
 public void setBoundElement(Object newValue) {
   if (newValue != null) {
     boundElement.modelUpdating(new StructuredSelection(newValue));
   } else {
     boundElement.modelUpdating(new StructuredSelection("")); // $NON-NLS-1$
   }
   boolean eefElementEditorReadOnlyState =
       isReadOnly(EnvironmentViewsRepository.BindingElement.Properties.boundElement);
   if (eefElementEditorReadOnlyState && boundElement.isEnabled()) {
     boundElement.setEnabled(false);
     boundElement.setToolTipText(EnvironmentMessages.BindingElement_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !boundElement.isEnabled()) {
     boundElement.setEnabled(true);
   }
 }