protected Composite createResultEMFComboViewer(FormToolkit widgetFactory, Composite parent) {
    createDescription(
        parent,
        ChecklistViewsRepository.Item.Properties.result,
        ChecklistMessages.ItemPropertiesEditionPart_ResultLabel);
    result = new EMFComboViewer(parent);
    result.setContentProvider(new ArrayContentProvider());
    result.setLabelProvider(
        new AdapterFactoryLabelProvider(EEFRuntimePlugin.getDefault().getAdapterFactory()));
    GridData resultData = new GridData(GridData.FILL_HORIZONTAL);
    result.getCombo().setLayoutData(resultData);
    result.addSelectionChangedListener(
        new ISelectionChangedListener() {

          /**
           * {@inheritDoc}
           *
           * @see
           *     org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
           */
          public void selectionChanged(SelectionChangedEvent event) {
            if (propertiesEditionComponent != null)
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      ItemPropertiesEditionPartForm.this,
                      ChecklistViewsRepository.Item.Properties.result,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      getResult()));
          }
        });
    result.setID(ChecklistViewsRepository.Item.Properties.result);
    FormUtils.createHelpButton(
        widgetFactory,
        parent,
        propertiesEditionComponent.getHelpContent(
            ChecklistViewsRepository.Item.Properties.result, ChecklistViewsRepository.FORM_KIND),
        null); //$NON-NLS-1$
    // Start of user code for createResultEMFComboViewer

    // End of user code
    return parent;
  }
  protected Composite createTypeEMFComboViewer(Composite parent) {
    createDescription(
        parent,
        EipViewsRepository.Router.Properties.type,
        EipMessages.RouterPropertiesEditionPart_TypeLabel);
    type = new EMFComboViewer(parent);
    type.setContentProvider(new ArrayContentProvider());
    type.setLabelProvider(
        new AdapterFactoryLabelProvider(EEFRuntimePlugin.getDefault().getAdapterFactory()));
    GridData typeData = new GridData(GridData.FILL_HORIZONTAL);
    type.getCombo().setLayoutData(typeData);
    type.addSelectionChangedListener(
        new ISelectionChangedListener() {

          /**
           * {@inheritDoc}
           *
           * @see
           *     org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
           */
          public void selectionChanged(SelectionChangedEvent event) {
            if (propertiesEditionComponent != null)
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      RouterPropertiesEditionPartImpl.this,
                      EipViewsRepository.Router.Properties.type,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      getType()));
          }
        });
    type.setID(EipViewsRepository.Router.Properties.type);
    SWTUtils.createHelpButton(
        parent,
        propertiesEditionComponent.getHelpContent(
            EipViewsRepository.Router.Properties.type, EipViewsRepository.SWT_KIND),
        null); //$NON-NLS-1$
    // Start of user code for createTypeEMFComboViewer

    // End of user code
    return parent;
  }
  protected Composite createVisibilityEMFComboViewer(Composite parent) {
    SWTUtils.createPartLabel(
        parent,
        UmlMessages.CreationEventPropertiesEditionPart_VisibilityLabel,
        propertiesEditionComponent.isRequired(
            UmlViewsRepository.CreationEvent.Properties.visibility, UmlViewsRepository.SWT_KIND));
    visibility = new EMFComboViewer(parent);
    visibility.setContentProvider(new ArrayContentProvider());
    visibility.setLabelProvider(new AdapterFactoryLabelProvider(new EcoreAdapterFactory()));
    GridData visibilityData = new GridData(GridData.FILL_HORIZONTAL);
    visibility.getCombo().setLayoutData(visibilityData);
    visibility.addSelectionChangedListener(
        new ISelectionChangedListener() {

          /**
           * {@inheritDoc}
           *
           * @see
           *     org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
           */
          public void selectionChanged(SelectionChangedEvent event) {
            if (propertiesEditionComponent != null)
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      CreationEventPropertiesEditionPartImpl.this,
                      UmlViewsRepository.CreationEvent.Properties.visibility,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      getVisibility()));
          }
        });
    visibility.setID(UmlViewsRepository.CreationEvent.Properties.visibility);
    SWTUtils.createHelpButton(
        parent,
        propertiesEditionComponent.getHelpContent(
            UmlViewsRepository.CreationEvent.Properties.visibility, UmlViewsRepository.SWT_KIND),
        null); //$NON-NLS-1$
    return parent;
  }
 /**
  * {@inheritDoc}
  *
  * @see com.github.lbroudoux.dsl.eip.parts.RouterPropertiesEditionPart#initType(Object input,
  *     Enumerator current)
  */
 public void initType(Object input, Enumerator current) {
   type.setInput(input);
   type.modelUpdating(new StructuredSelection(current));
   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 org.obeonetwork.graal.parts.TransitionPropertiesEditionPart#initKind(Object input,
  *     Enumerator current)
  */
 public void initKind(Object input, Enumerator current) {
   kind.setInput(input);
   kind.modelUpdating(new StructuredSelection(current));
   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 net.certware.verification.checklist.parts.ItemPropertiesEditionPart#initResult(Object
  *     input, Enumerator current)
  */
 public void initResult(Object input, Enumerator current) {
   result.setInput(input);
   result.modelUpdating(new StructuredSelection(current));
   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.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);
   }
 }
  protected Composite createBoundElementEMFComboViewer(Composite parent) {
    createDescription(
        parent,
        EnvironmentViewsRepository.BindingElement.Properties.boundElement,
        EnvironmentMessages.BindingElementPropertiesEditionPart_BoundElementLabel);
    boundElement = new EMFComboViewer(parent);
    GridData boundElementData = new GridData(GridData.FILL_HORIZONTAL);
    boundElement.getCombo().setLayoutData(boundElementData);
    boundElement.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
    boundElement.addSelectionChangedListener(
        new ISelectionChangedListener() {

          /**
           * {@inheritDoc}
           *
           * @see
           *     org.eclipse.jface.viewers.ISelectionChangedListener#selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent)
           */
          public void selectionChanged(SelectionChangedEvent event) {
            if (propertiesEditionComponent != null)
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      BindingElementPropertiesEditionPartImpl.this,
                      EnvironmentViewsRepository.BindingElement.Properties.boundElement,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      getBoundElement()));
          }
        });
    boundElement.setContentProvider(new EMFListContentProvider());
    EditingUtils.setID(
        boundElement.getCombo(), EnvironmentViewsRepository.BindingElement.Properties.boundElement);
    EditingUtils.setEEFtype(boundElement.getCombo(), "eef::Combo"); // $NON-NLS-1$
    SWTUtils.createHelpButton(
        parent,
        propertiesEditionComponent.getHelpContent(
            EnvironmentViewsRepository.BindingElement.Properties.boundElement,
            EnvironmentViewsRepository.SWT_KIND),
        null); //$NON-NLS-1$
    // Start of user code for createBoundElementEMFComboViewer

    // End of user code
    return parent;
  }
 /**
  * {@inheritDoc}
  *
  * @see net.certware.verification.checklist.parts.ItemPropertiesEditionPart#getResult()
  */
 public Enumerator getResult() {
   Enumerator selection =
       (Enumerator) ((StructuredSelection) result.getSelection()).getFirstElement();
   return selection;
 }
 /**
  * {@inheritDoc}
  *
  * @see com.github.lbroudoux.dsl.eip.parts.RouterPropertiesEditionPart#getType()
  */
 public Enumerator getType() {
   Enumerator selection =
       (Enumerator) ((StructuredSelection) type.getSelection()).getFirstElement();
   return selection;
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.uml2.properties.uml.parts.CreationEventPropertiesEditionPart#setVisibility(Enumerator
  *     newValue)
  */
 public void setVisibility(Enumerator newValue) {
   visibility.modelUpdating(new StructuredSelection(newValue));
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.environment.parts.BindingElementPropertiesEditionPart#initBoundElement(Object
  *     input, Object currentValue)
  */
 public void initBoundElement(Object input, Object currentValue) {
   boundElement.setInput(input);
   if (currentValue != null) {
     boundElement.setSelection(new StructuredSelection(currentValue));
   }
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.uml2.properties.uml.parts.CreationEventPropertiesEditionPart#initVisibility(EEnum
  *     eenum, Enumerator current)
  */
 public void initVisibility(EEnum eenum, Enumerator current) {
   visibility.setInput(eenum.getELiterals());
   visibility.modelUpdating(new StructuredSelection(current));
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.uml2.properties.uml.parts.CreationEventPropertiesEditionPart#getVisibility()
  */
 public Enumerator getVisibility() {
   EEnumLiteral selection =
       (EEnumLiteral) ((StructuredSelection) visibility.getSelection()).getFirstElement();
   return selection.getInstance();
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.environment.parts.BindingElementPropertiesEditionPart#addFilterBoundElement(ViewerFilter
  *     filter)
  */
 public void addFilterToBoundElement(ViewerFilter filter) {
   boundElement.addFilter(filter);
 }
 /**
  * {@inheritDoc}
  *
  * @see org.obeonetwork.graal.parts.TransitionPropertiesEditionPart#getKind()
  */
 public Enumerator getKind() {
   Enumerator selection =
       (Enumerator) ((StructuredSelection) kind.getSelection()).getFirstElement();
   return selection;
 }
 /**
  * {@inheritDoc}
  *
  * @see
  *     org.obeonetwork.dsl.environment.parts.BindingElementPropertiesEditionPart#getBoundElement()
  */
 public Object getBoundElement() {
   if (boundElement.getSelection() instanceof StructuredSelection) {
     return ((StructuredSelection) boundElement.getSelection()).getFirstElement();
   }
   return "";
 }