/**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.database.parts.ForeignKeyPropertiesEditionPart#initTarget(EObjectFlatComboSettings)
  */
 public void initTarget(EObjectFlatComboSettings settings) {
   target.setInput(settings);
   if (current != null) {
     target.setSelection(new StructuredSelection(settings.getValue()));
   }
   boolean eefElementEditorReadOnlyState =
       isReadOnly(DatabaseViewsRepository.ForeignKey.Properties.target);
   if (eefElementEditorReadOnlyState && target.isEnabled()) {
     target.setEnabled(false);
     target.setToolTipText(DatabaseMessages.ForeignKey_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !target.isEnabled()) {
     target.setEnabled(true);
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.cinematic.flow.parts.SubflowStatePropertiesEditionPart#initSubflow(EObjectFlatComboSettings)
  */
 public void initSubflow(EObjectFlatComboSettings settings) {
   subflow.setInput(settings);
   if (current != null) {
     subflow.setSelection(new StructuredSelection(settings.getValue()));
   }
   boolean eefElementEditorReadOnlyState =
       isReadOnly(FlowViewsRepository.SubflowState.Properties.subflow);
   if (eefElementEditorReadOnlyState && subflow.isEnabled()) {
     subflow.setEnabled(false);
     subflow.setToolTipText(FlowMessages.SubflowState_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !subflow.isEnabled()) {
     subflow.setEnabled(true);
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     net.certware.sacm.SACM.Evidence.parts.HasRoleInPropertiesEditionPart#initOrganization(EObjectFlatComboSettings)
  */
 public void initOrganization(EObjectFlatComboSettings settings) {
   organization.setInput(settings);
   if (current != null) {
     organization.setSelection(new StructuredSelection(settings.getValue()));
   }
   boolean eefElementEditorReadOnlyState =
       isReadOnly(EvidenceViewsRepository.HasRoleIn.Properties.organization);
   if (eefElementEditorReadOnlyState && organization.isEnabled()) {
     organization.setEnabled(false);
     organization.setToolTipText(EvidenceMessages.HasRoleIn_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !organization.isEnabled()) {
     organization.setEnabled(true);
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.cinematic.view.parts.ViewElementPropertiesEditionPart#initType(EObjectFlatComboSettings)
  */
 public void initType(EObjectFlatComboSettings settings) {
   type.setInput(settings);
   if (current != null) {
     type.setSelection(new StructuredSelection(settings.getValue()));
   }
   boolean eefElementEditorReadOnlyState =
       isReadOnly(ViewViewsRepository.ViewElement.Properties.type);
   if (eefElementEditorReadOnlyState && type.isEnabled()) {
     type.setEnabled(false);
     type.setToolTipText(ViewMessages.ViewElement_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !type.isEnabled()) {
     type.setEnabled(true);
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.graal.parts.TransitionPropertiesEditionPart#initSource(EObjectFlatComboSettings)
  */
 public void initSource(EObjectFlatComboSettings settings) {
   source.setInput(settings);
   if (current != null) {
     source.setSelection(new StructuredSelection(settings.getValue()));
   }
   boolean eefElementEditorReadOnlyState =
       isReadOnly(GraalViewsRepository.Transition.Properties.source);
   if (eefElementEditorReadOnlyState && source.isEnabled()) {
     source.setEnabled(false);
     source.setToolTipText(GraalMessages.Transition_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !source.isEnabled()) {
     source.setEnabled(true);
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.cinematic.flow.parts.SubflowStatePropertiesEditionPart#setSubflow(EObject
  *     newValue)
  */
 public void setSubflow(EObject newValue) {
   if (newValue != null) {
     subflow.setSelection(new StructuredSelection(newValue));
   } else {
     subflow.setSelection(new StructuredSelection()); // $NON-NLS-1$
   }
   boolean eefElementEditorReadOnlyState =
       isReadOnly(FlowViewsRepository.SubflowState.Properties.subflow);
   if (eefElementEditorReadOnlyState && subflow.isEnabled()) {
     subflow.setEnabled(false);
     subflow.setToolTipText(FlowMessages.SubflowState_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !subflow.isEnabled()) {
     subflow.setEnabled(true);
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     net.certware.sacm.SACM.Evidence.parts.HasRoleInPropertiesEditionPart#setOrganization(EObject
  *     newValue)
  */
 public void setOrganization(EObject newValue) {
   if (newValue != null) {
     organization.setSelection(new StructuredSelection(newValue));
   } else {
     organization.setSelection(new StructuredSelection()); // $NON-NLS-1$
   }
   boolean eefElementEditorReadOnlyState =
       isReadOnly(EvidenceViewsRepository.HasRoleIn.Properties.organization);
   if (eefElementEditorReadOnlyState && organization.isEnabled()) {
     organization.setEnabled(false);
     organization.setToolTipText(EvidenceMessages.HasRoleIn_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !organization.isEnabled()) {
     organization.setEnabled(true);
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see org.obeonetwork.dsl.database.parts.ForeignKeyPropertiesEditionPart#setTarget(EObject
  *     newValue)
  */
 public void setTarget(EObject newValue) {
   if (newValue != null) {
     target.setSelection(new StructuredSelection(newValue));
   } else {
     target.setSelection(new StructuredSelection()); // $NON-NLS-1$
   }
   boolean eefElementEditorReadOnlyState =
       isReadOnly(DatabaseViewsRepository.ForeignKey.Properties.target);
   if (eefElementEditorReadOnlyState && target.isEnabled()) {
     target.setEnabled(false);
     target.setToolTipText(DatabaseMessages.ForeignKey_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !target.isEnabled()) {
     target.setEnabled(true);
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see org.obeonetwork.dsl.cinematic.view.parts.ViewElementPropertiesEditionPart#setType(EObject
  *     newValue)
  */
 public void setType(EObject newValue) {
   if (newValue != null) {
     type.setSelection(new StructuredSelection(newValue));
   } else {
     type.setSelection(new StructuredSelection()); // $NON-NLS-1$
   }
   boolean eefElementEditorReadOnlyState =
       isReadOnly(ViewViewsRepository.ViewElement.Properties.type);
   if (eefElementEditorReadOnlyState && type.isEnabled()) {
     type.setEnabled(false);
     type.setToolTipText(ViewMessages.ViewElement_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !type.isEnabled()) {
     type.setEnabled(true);
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see org.obeonetwork.graal.parts.TransitionPropertiesEditionPart#setSource(EObject newValue)
  */
 public void setSource(EObject newValue) {
   if (newValue != null) {
     source.setSelection(new StructuredSelection(newValue));
   } else {
     source.setSelection(new StructuredSelection()); // $NON-NLS-1$
   }
   boolean eefElementEditorReadOnlyState =
       isReadOnly(GraalViewsRepository.Transition.Properties.source);
   if (eefElementEditorReadOnlyState && source.isEnabled()) {
     source.setEnabled(false);
     source.setToolTipText(GraalMessages.Transition_ReadOnly);
   } else if (!eefElementEditorReadOnlyState && !source.isEnabled()) {
     source.setEnabled(true);
   }
 }