/**
   * @param parent the parent composite
   * @param widgetFactory factory to use to instanciante widget of the form
   */
  protected Composite createOrganizationFlatComboViewer(
      Composite parent, FormToolkit widgetFactory) {
    createDescription(
        parent,
        EvidenceViewsRepository.HasRoleIn.Properties.organization,
        EvidenceMessages.HasRoleInPropertiesEditionPart_OrganizationLabel);
    organization =
        new EObjectFlatComboViewer(
            parent,
            !propertiesEditionComponent.isRequired(
                EvidenceViewsRepository.HasRoleIn.Properties.organization,
                EvidenceViewsRepository.FORM_KIND));
    widgetFactory.adapt(organization);
    organization.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
    GridData organizationData = new GridData(GridData.FILL_HORIZONTAL);
    organization.setLayoutData(organizationData);
    organization.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(
                      HasRoleInPropertiesEditionPartForm.this,
                      EvidenceViewsRepository.HasRoleIn.Properties.organization,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      getOrganization()));
          }
        });
    organization.setID(EvidenceViewsRepository.HasRoleIn.Properties.organization);
    FormUtils.createHelpButton(
        widgetFactory,
        parent,
        propertiesEditionComponent.getHelpContent(
            EvidenceViewsRepository.HasRoleIn.Properties.organization,
            EvidenceViewsRepository.FORM_KIND),
        null); //$NON-NLS-1$
    // Start of user code for createOrganizationFlatComboViewer

    // End of user code
    return parent;
  }
  /**
   * @param parent the parent composite
   * @param widgetFactory factory to use to instanciante widget of the form
   */
  protected Composite createTargetFlatComboViewer(Composite parent, FormToolkit widgetFactory) {
    createDescription(
        parent,
        DatabaseViewsRepository.ForeignKey.Properties.target,
        DatabaseMessages.ForeignKeyPropertiesEditionPart_TargetLabel);
    target =
        new EObjectFlatComboViewer(
            parent,
            !propertiesEditionComponent.isRequired(
                DatabaseViewsRepository.ForeignKey.Properties.target,
                DatabaseViewsRepository.FORM_KIND));
    widgetFactory.adapt(target);
    target.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
    GridData targetData = new GridData(GridData.FILL_HORIZONTAL);
    target.setLayoutData(targetData);
    target.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(
                      ForeignKeyPropertiesEditionPartForm.this,
                      DatabaseViewsRepository.ForeignKey.Properties.target,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      getTarget()));
          }
        });
    target.setID(DatabaseViewsRepository.ForeignKey.Properties.target);
    FormUtils.createHelpButton(
        widgetFactory,
        parent,
        propertiesEditionComponent.getHelpContent(
            DatabaseViewsRepository.ForeignKey.Properties.target,
            DatabaseViewsRepository.FORM_KIND),
        null); //$NON-NLS-1$
    // Start of user code for createTargetFlatComboViewer

    // End of user code
    return parent;
  }
  /**
   * @param parent the parent composite
   * @param widgetFactory factory to use to instanciante widget of the form
   */
  protected Composite createDefaultTargetFlatComboViewer(
      Composite parent, FormToolkit widgetFactory) {
    FormUtils.createPartLabel(
        widgetFactory,
        parent,
        EweMessages.ProjectPropertiesEditionPart_DefaultTargetLabel,
        propertiesEditionComponent.isRequired(
            EweViewsRepository.Project.Properties.defaultTarget, EweViewsRepository.FORM_KIND));
    defaultTarget =
        new EObjectFlatComboViewer(
            parent,
            !propertiesEditionComponent.isRequired(
                EweViewsRepository.Project.Properties.defaultTarget, EweViewsRepository.FORM_KIND));
    widgetFactory.adapt(defaultTarget);
    defaultTarget.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
    GridData defaultTargetData = new GridData(GridData.FILL_HORIZONTAL);
    defaultTarget.setLayoutData(defaultTargetData);
    defaultTarget.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(
                      ProjectPropertiesEditionPartForm.this,
                      EweViewsRepository.Project.Properties.defaultTarget,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      getDefaultTarget()));
          }
        });
    defaultTarget.setID(EweViewsRepository.Project.Properties.defaultTarget);
    FormUtils.createHelpButton(
        widgetFactory,
        parent,
        propertiesEditionComponent.getHelpContent(
            EweViewsRepository.Project.Properties.defaultTarget, EweViewsRepository.FORM_KIND),
        null); //$NON-NLS-1$
    return parent;
  }
  /**
   * @param parent the parent composite
   * @param widgetFactory factory to use to instanciante widget of the form
   */
  protected Composite createInteractionFlatComboViewer(
      Composite parent, FormToolkit widgetFactory) {
    createDescription(
        parent,
        InteractionViewsRepository.InteractionUse.Properties.interaction_,
        InteractionMessages.InteractionUsePropertiesEditionPart_InteractionLabel);
    interaction =
        new EObjectFlatComboViewer(
            parent,
            !propertiesEditionComponent.isRequired(
                InteractionViewsRepository.InteractionUse.Properties.interaction_,
                InteractionViewsRepository.FORM_KIND));
    widgetFactory.adapt(interaction);
    interaction.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
    GridData interactionData = new GridData(GridData.FILL_HORIZONTAL);
    interaction.setLayoutData(interactionData);
    interaction.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(
                      InteractionUsePropertiesEditionPartForm.this,
                      InteractionViewsRepository.InteractionUse.Properties.interaction_,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      getInteraction()));
          }
        });
    interaction.setID(InteractionViewsRepository.InteractionUse.Properties.interaction_);
    FormUtils.createHelpButton(
        widgetFactory,
        parent,
        propertiesEditionComponent.getHelpContent(
            InteractionViewsRepository.InteractionUse.Properties.interaction_,
            InteractionViewsRepository.FORM_KIND),
        null); //$NON-NLS-1$
    return parent;
  }
  /** @param parent the parent composite */
  protected Composite createOwningTemplateParameterFlatComboViewer(Composite parent) {
    SWTUtils.createPartLabel(
        parent,
        UmlMessages.CreationEventPropertiesEditionPart_OwningTemplateParameterLabel,
        propertiesEditionComponent.isRequired(
            UmlViewsRepository.CreationEvent.Properties.owningTemplateParameter,
            UmlViewsRepository.SWT_KIND));
    owningTemplateParameter =
        new EObjectFlatComboViewer(
            parent,
            !propertiesEditionComponent.isRequired(
                UmlViewsRepository.CreationEvent.Properties.owningTemplateParameter,
                UmlViewsRepository.SWT_KIND));
    owningTemplateParameter.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));

    owningTemplateParameter.addSelectionChangedListener(
        new ISelectionChangedListener() {

          public void selectionChanged(SelectionChangedEvent event) {
            propertiesEditionComponent.firePropertiesChanged(
                new PropertiesEditionEvent(
                    CreationEventPropertiesEditionPartImpl.this,
                    UmlViewsRepository.CreationEvent.Properties.owningTemplateParameter,
                    PropertiesEditionEvent.CHANGE,
                    PropertiesEditionEvent.SET,
                    null,
                    getOwningTemplateParameter()));
          }
        });
    GridData owningTemplateParameterData = new GridData(GridData.FILL_HORIZONTAL);
    owningTemplateParameter.setLayoutData(owningTemplateParameterData);
    owningTemplateParameter.setID(
        UmlViewsRepository.CreationEvent.Properties.owningTemplateParameter);
    SWTUtils.createHelpButton(
        parent,
        propertiesEditionComponent.getHelpContent(
            UmlViewsRepository.CreationEvent.Properties.owningTemplateParameter,
            UmlViewsRepository.SWT_KIND),
        null); //$NON-NLS-1$
    return parent;
  }
  /** @param parent the parent composite */
  protected Composite createTypeFlatComboViewer(Composite parent) {
    createDescription(
        parent,
        InteractionViewsRepository.Participant.Properties.type,
        InteractionMessages.ParticipantPropertiesEditionPart_TypeLabel);
    type =
        new EObjectFlatComboViewer(
            parent,
            !propertiesEditionComponent.isRequired(
                InteractionViewsRepository.Participant.Properties.type,
                InteractionViewsRepository.SWT_KIND));
    type.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));

    type.addSelectionChangedListener(
        new ISelectionChangedListener() {

          public void selectionChanged(SelectionChangedEvent event) {
            propertiesEditionComponent.firePropertiesChanged(
                new PropertiesEditionEvent(
                    ParticipantPropertiesEditionPartImpl.this,
                    InteractionViewsRepository.Participant.Properties.type,
                    PropertiesEditionEvent.CHANGE,
                    PropertiesEditionEvent.SET,
                    null,
                    getType()));
          }
        });
    GridData typeData = new GridData(GridData.FILL_HORIZONTAL);
    type.setLayoutData(typeData);
    type.setID(InteractionViewsRepository.Participant.Properties.type);
    SWTUtils.createHelpButton(
        parent,
        propertiesEditionComponent.getHelpContent(
            InteractionViewsRepository.Participant.Properties.type,
            InteractionViewsRepository.SWT_KIND),
        null); //$NON-NLS-1$
    // Start of user code for createTypeFlatComboViewer

    // End of user code
    return parent;
  }
  /** @param parent the parent composite */
  protected Composite createTypeFlatComboViewer(Composite parent) {
    SWTUtils.createPartLabel(
        parent,
        TypeslibraryMessages.SimpleNamedTypePropertiesEditionPart_TypeLabel,
        propertiesEditionComponent.isRequired(
            TypeslibraryViewsRepository.SimpleNamedType.Properties.type,
            TypeslibraryViewsRepository.SWT_KIND));
    type =
        new EObjectFlatComboViewer(
            parent,
            !propertiesEditionComponent.isRequired(
                TypeslibraryViewsRepository.SimpleNamedType.Properties.type,
                TypeslibraryViewsRepository.SWT_KIND));
    type.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));

    type.addSelectionChangedListener(
        new ISelectionChangedListener() {

          public void selectionChanged(SelectionChangedEvent event) {
            propertiesEditionComponent.firePropertiesChanged(
                new PropertiesEditionEvent(
                    SimpleNamedTypePropertiesEditionPartImpl.this,
                    TypeslibraryViewsRepository.SimpleNamedType.Properties.type,
                    PropertiesEditionEvent.CHANGE,
                    PropertiesEditionEvent.SET,
                    null,
                    getType()));
          }
        });
    GridData typeData = new GridData(GridData.FILL_HORIZONTAL);
    type.setLayoutData(typeData);
    type.setID(TypeslibraryViewsRepository.SimpleNamedType.Properties.type);
    SWTUtils.createHelpButton(
        parent,
        propertiesEditionComponent.getHelpContent(
            TypeslibraryViewsRepository.SimpleNamedType.Properties.type,
            TypeslibraryViewsRepository.SWT_KIND),
        null); //$NON-NLS-1$
    return parent;
  }
  /** @param parent the parent composite */
  protected Composite createWidgetFlatComboViewer(Composite parent) {
    createDescription(
        parent,
        ViewViewsRepository.ViewElement.Properties.widget,
        ViewMessages.ViewElementPropertiesEditionPart_WidgetLabel);
    widget =
        new EObjectFlatComboViewer(
            parent,
            !propertiesEditionComponent.isRequired(
                ViewViewsRepository.ViewElement.Properties.widget, ViewViewsRepository.SWT_KIND));
    widget.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));

    widget.addSelectionChangedListener(
        new ISelectionChangedListener() {

          public void selectionChanged(SelectionChangedEvent event) {
            propertiesEditionComponent.firePropertiesChanged(
                new PropertiesEditionEvent(
                    ViewElementPropertiesEditionPartImpl.this,
                    ViewViewsRepository.ViewElement.Properties.widget,
                    PropertiesEditionEvent.CHANGE,
                    PropertiesEditionEvent.SET,
                    null,
                    getWidget()));
          }
        });
    GridData widgetData = new GridData(GridData.FILL_HORIZONTAL);
    widget.setLayoutData(widgetData);
    widget.setID(ViewViewsRepository.ViewElement.Properties.widget);
    SWTUtils.createHelpButton(
        parent,
        propertiesEditionComponent.getHelpContent(
            ViewViewsRepository.ViewElement.Properties.widget, ViewViewsRepository.SWT_KIND),
        null); //$NON-NLS-1$
    // Start of user code for createWidgetFlatComboViewer

    // End of user code
    return parent;
  }
  /** @param parent the parent composite */
  protected Composite createSourceFlatComboViewer(Composite parent) {
    createDescription(
        parent,
        GraalViewsRepository.Transition.Properties.source,
        GraalMessages.TransitionPropertiesEditionPart_SourceLabel);
    source =
        new EObjectFlatComboViewer(
            parent,
            !propertiesEditionComponent.isRequired(
                GraalViewsRepository.Transition.Properties.source, GraalViewsRepository.SWT_KIND));
    source.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));

    source.addSelectionChangedListener(
        new ISelectionChangedListener() {

          public void selectionChanged(SelectionChangedEvent event) {
            propertiesEditionComponent.firePropertiesChanged(
                new PropertiesEditionEvent(
                    TransitionPropertiesEditionPartImpl.this,
                    GraalViewsRepository.Transition.Properties.source,
                    PropertiesEditionEvent.CHANGE,
                    PropertiesEditionEvent.SET,
                    null,
                    getSource()));
          }
        });
    GridData sourceData = new GridData(GridData.FILL_HORIZONTAL);
    source.setLayoutData(sourceData);
    source.setID(GraalViewsRepository.Transition.Properties.source);
    SWTUtils.createHelpButton(
        parent,
        propertiesEditionComponent.getHelpContent(
            GraalViewsRepository.Transition.Properties.source, GraalViewsRepository.SWT_KIND),
        null); //$NON-NLS-1$
    // Start of user code for createSourceFlatComboViewer

    // End of user code
    return parent;
  }
  /** @param parent the parent composite */
  protected Composite createSubflowFlatComboViewer(Composite parent) {
    createDescription(
        parent,
        FlowViewsRepository.SubflowState.Properties.subflow,
        FlowMessages.SubflowStatePropertiesEditionPart_SubflowLabel);
    subflow =
        new EObjectFlatComboViewer(
            parent,
            !propertiesEditionComponent.isRequired(
                FlowViewsRepository.SubflowState.Properties.subflow, FlowViewsRepository.SWT_KIND));
    subflow.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));

    subflow.addSelectionChangedListener(
        new ISelectionChangedListener() {

          public void selectionChanged(SelectionChangedEvent event) {
            propertiesEditionComponent.firePropertiesChanged(
                new PropertiesEditionEvent(
                    SubflowStatePropertiesEditionPartImpl.this,
                    FlowViewsRepository.SubflowState.Properties.subflow,
                    PropertiesEditionEvent.CHANGE,
                    PropertiesEditionEvent.SET,
                    null,
                    getSubflow()));
          }
        });
    GridData subflowData = new GridData(GridData.FILL_HORIZONTAL);
    subflow.setLayoutData(subflowData);
    subflow.setID(FlowViewsRepository.SubflowState.Properties.subflow);
    SWTUtils.createHelpButton(
        parent,
        propertiesEditionComponent.getHelpContent(
            FlowViewsRepository.SubflowState.Properties.subflow, FlowViewsRepository.SWT_KIND),
        null); //$NON-NLS-1$
    return parent;
  }