protected Composite createValueText(FormToolkit widgetFactory, Composite parent) {
   FormUtils.createPartLabel(
       widgetFactory,
       parent,
       DroidMessages.BooleanVDPropertiesEditionPart_ValueLabel,
       propertiesEditionComponent.isRequired(
           DroidViewsRepository.BooleanVD.Properties.value, DroidViewsRepository.FORM_KIND));
   value = widgetFactory.createText(parent, ""); // $NON-NLS-1$
   value.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
   widgetFactory.paintBordersFor(parent);
   GridData valueData = new GridData(GridData.FILL_HORIZONTAL);
   value.setLayoutData(valueData);
   value.addFocusListener(
       new FocusAdapter() {
         /**
          * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
          */
         @Override
         @SuppressWarnings("synthetic-access")
         public void focusLost(FocusEvent e) {
           if (propertiesEditionComponent != null)
             propertiesEditionComponent.firePropertiesChanged(
                 new PropertiesEditionEvent(
                     BooleanVDPropertiesEditionPartForm.this,
                     DroidViewsRepository.BooleanVD.Properties.value,
                     PropertiesEditionEvent.COMMIT,
                     PropertiesEditionEvent.SET,
                     null,
                     value.getText()));
         }
       });
   value.addKeyListener(
       new KeyAdapter() {
         /** @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent) */
         @Override
         @SuppressWarnings("synthetic-access")
         public void keyPressed(KeyEvent e) {
           if (e.character == SWT.CR) {
             if (propertiesEditionComponent != null)
               propertiesEditionComponent.firePropertiesChanged(
                   new PropertiesEditionEvent(
                       BooleanVDPropertiesEditionPartForm.this,
                       DroidViewsRepository.BooleanVD.Properties.value,
                       PropertiesEditionEvent.COMMIT,
                       PropertiesEditionEvent.SET,
                       null,
                       value.getText()));
           }
         }
       });
   EditingUtils.setID(value, DroidViewsRepository.BooleanVD.Properties.value);
   EditingUtils.setEEFtype(value, "eef::Text"); // $NON-NLS-1$
   FormUtils.createHelpButton(
       widgetFactory,
       parent,
       propertiesEditionComponent.getHelpContent(
           DroidViewsRepository.BooleanVD.Properties.value, DroidViewsRepository.FORM_KIND),
       null); //$NON-NLS-1$
   return parent;
 }
 protected Composite createDescriptionText(FormToolkit widgetFactory, Composite parent) {
   createDescription(
       parent,
       InteractionViewsRepository.InteractionUse.Properties.description,
       InteractionMessages.InteractionUsePropertiesEditionPart_DescriptionLabel);
   description = widgetFactory.createText(parent, ""); // $NON-NLS-1$
   description.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
   widgetFactory.paintBordersFor(parent);
   GridData descriptionData = new GridData(GridData.FILL_HORIZONTAL);
   description.setLayoutData(descriptionData);
   description.addFocusListener(
       new FocusAdapter() {
         /**
          * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
          */
         @Override
         @SuppressWarnings("synthetic-access")
         public void focusLost(FocusEvent e) {
           if (propertiesEditionComponent != null)
             propertiesEditionComponent.firePropertiesChanged(
                 new PropertiesEditionEvent(
                     InteractionUsePropertiesEditionPartForm.this,
                     InteractionViewsRepository.InteractionUse.Properties.description,
                     PropertiesEditionEvent.COMMIT,
                     PropertiesEditionEvent.SET,
                     null,
                     description.getText()));
         }
       });
   description.addKeyListener(
       new KeyAdapter() {
         /** @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent) */
         @Override
         @SuppressWarnings("synthetic-access")
         public void keyPressed(KeyEvent e) {
           if (e.character == SWT.CR) {
             if (propertiesEditionComponent != null)
               propertiesEditionComponent.firePropertiesChanged(
                   new PropertiesEditionEvent(
                       InteractionUsePropertiesEditionPartForm.this,
                       InteractionViewsRepository.InteractionUse.Properties.description,
                       PropertiesEditionEvent.COMMIT,
                       PropertiesEditionEvent.SET,
                       null,
                       description.getText()));
           }
         }
       });
   EditingUtils.setID(
       description, InteractionViewsRepository.InteractionUse.Properties.description);
   EditingUtils.setEEFtype(description, "eef::Text"); // $NON-NLS-1$
   FormUtils.createHelpButton(
       widgetFactory,
       parent,
       propertiesEditionComponent.getHelpContent(
           InteractionViewsRepository.InteractionUse.Properties.description,
           InteractionViewsRepository.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 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 groupGroup */
  protected void createTestEOFCVFlatComboViewer(Composite parent, FormToolkit widgetFactory) {
    FormUtils.createPartLabel(
        widgetFactory,
        parent,
        NonregMessages.TestFilterPropertiesEditionPart_TestEOFCVLabel,
        propertiesEditionComponent.isRequired(
            NonregViewsRepository.TestFilter.testEOFCV, NonregViewsRepository.FORM_KIND));
    testEOFCV = new EObjectFlatComboViewer(parent, true);
    testEOFCV.setLabelProvider(new AdapterFactoryLabelProvider(adapterFactory));
    GridData testEOFCVData = new GridData(GridData.FILL_HORIZONTAL);
    testEOFCV.setLayoutData(testEOFCVData);
    testEOFCV.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(
                      TestFilterPropertiesEditionPartForm.this,
                      NonregViewsRepository.TestFilter.testEOFCV,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      getTestEOFCV()));
          }
        });
    FormUtils.createHelpButton(
        widgetFactory,
        parent,
        propertiesEditionComponent.getHelpContent(
            NonregViewsRepository.TestFilter.testEOFCV, NonregViewsRepository.FORM_KIND),
        null); //$NON-NLS-1$
  }
  /**
   * @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 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;
  }
  protected Composite createInterface_Checkbox(FormToolkit widgetFactory, Composite parent) {
    interface_ =
        widgetFactory.createButton(
            parent,
            getDescription(
                EcoreViewsRepository.EClass.Properties.Abstraction.interface_,
                EcoreMessages.EClassPropertiesEditionPart_Interface_Label),
            SWT.CHECK);
    interface_.addSelectionListener(
        new SelectionAdapter() {

          /**
           * {@inheritDoc}
           *
           * @see
           *     org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
           */
          public void widgetSelected(SelectionEvent e) {
            if (propertiesEditionComponent != null)
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      EClassPropertiesEditionPartForm.this,
                      EcoreViewsRepository.EClass.Properties.Abstraction.interface_,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      new Boolean(interface_.getSelection())));
          }
        });
    GridData interface_Data = new GridData(GridData.FILL_HORIZONTAL);
    interface_Data.horizontalSpan = 2;
    interface_.setLayoutData(interface_Data);
    EditingUtils.setID(interface_, EcoreViewsRepository.EClass.Properties.Abstraction.interface_);
    EditingUtils.setEEFtype(interface_, "eef::Checkbox"); // $NON-NLS-1$
    FormUtils.createHelpButton(
        widgetFactory,
        parent,
        propertiesEditionComponent.getHelpContent(
            EcoreViewsRepository.EClass.Properties.Abstraction.interface_,
            EcoreViewsRepository.FORM_KIND),
        null); //$NON-NLS-1$
    // Start of user code for createInterface_Checkbox

    // End of user code
    return parent;
  }
  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 void createTestRTReferencesTable(FormToolkit widgetFactory, Composite parent) {
   Label testRTLabel =
       FormUtils.createPartLabel(
           widgetFactory,
           parent,
           NonregMessages.TestFilterPropertiesEditionPart_TestRTLabel,
           propertiesEditionComponent.isRequired(
               NonregViewsRepository.TestFilter.testRT, NonregViewsRepository.FORM_KIND));
   GridData testRTLabelData = new GridData();
   testRTLabelData.horizontalSpan = 3;
   testRTLabel.setLayoutData(testRTLabelData);
   testRT = createTestRTViewer(parent, widgetFactory, adapterFactory);
   GridData testRTData = new GridData(GridData.FILL_HORIZONTAL);
   testRTData.horizontalSpan = 2;
   testRTData.minimumHeight = 120;
   testRTData.heightHint = 120;
   testRT.getTable().setLayoutData(testRTData);
   createTestRTControlPanel(parent, widgetFactory);
 }
  protected Composite createRefreshCheckbox(FormToolkit widgetFactory, Composite parent) {
    refresh =
        widgetFactory.createButton(
            parent,
            getDescription(
                FlowViewsRepository.ViewState.Properties.refresh,
                FlowMessages.ViewStatePropertiesEditionPart_RefreshLabel),
            SWT.CHECK);
    refresh.addSelectionListener(
        new SelectionAdapter() {

          /**
           * {@inheritDoc}
           *
           * @see
           *     org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
           */
          public void widgetSelected(SelectionEvent e) {
            if (propertiesEditionComponent != null)
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      ViewStatePropertiesEditionPartForm.this,
                      FlowViewsRepository.ViewState.Properties.refresh,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      new Boolean(refresh.getSelection())));
          }
        });
    GridData refreshData = new GridData(GridData.FILL_HORIZONTAL);
    refreshData.horizontalSpan = 2;
    refresh.setLayoutData(refreshData);
    EditingUtils.setID(refresh, FlowViewsRepository.ViewState.Properties.refresh);
    EditingUtils.setEEFtype(refresh, "eef::Checkbox"); // $NON-NLS-1$
    FormUtils.createHelpButton(
        widgetFactory,
        parent,
        propertiesEditionComponent.getHelpContent(
            FlowViewsRepository.ViewState.Properties.refresh, FlowViewsRepository.FORM_KIND),
        null); //$NON-NLS-1$
    return parent;
  }
  protected Composite createCommentText(FormToolkit widgetFactory, Composite parent) {
    createDescription(
        parent,
        ChecklistViewsRepository.Item.Properties.comment,
        ChecklistMessages.ItemPropertiesEditionPart_CommentLabel);
    comment = widgetFactory.createText(parent, ""); // $NON-NLS-1$
    comment.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    widgetFactory.paintBordersFor(parent);
    GridData commentData = new GridData(GridData.FILL_HORIZONTAL);
    comment.setLayoutData(commentData);
    comment.addFocusListener(
        new FocusAdapter() {
          /**
           * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
           */
          @Override
          @SuppressWarnings("synthetic-access")
          public void focusLost(FocusEvent e) {
            if (propertiesEditionComponent != null) {
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      ItemPropertiesEditionPartForm.this,
                      ChecklistViewsRepository.Item.Properties.comment,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      comment.getText()));
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      ItemPropertiesEditionPartForm.this,
                      ChecklistViewsRepository.Item.Properties.comment,
                      PropertiesEditionEvent.FOCUS_CHANGED,
                      PropertiesEditionEvent.FOCUS_LOST,
                      null,
                      comment.getText()));
            }
          }

          /**
           * @see org.eclipse.swt.events.FocusAdapter#focusGained(org.eclipse.swt.events.FocusEvent)
           */
          @Override
          public void focusGained(FocusEvent e) {
            if (propertiesEditionComponent != null) {
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      ItemPropertiesEditionPartForm.this,
                      null,
                      PropertiesEditionEvent.FOCUS_CHANGED,
                      PropertiesEditionEvent.FOCUS_GAINED,
                      null,
                      null));
            }
          }
        });
    comment.addKeyListener(
        new KeyAdapter() {
          /** @see org.eclipse.swt.events.KeyAdapter#keyPressed(org.eclipse.swt.events.KeyEvent) */
          @Override
          @SuppressWarnings("synthetic-access")
          public void keyPressed(KeyEvent e) {
            if (e.character == SWT.CR) {
              if (propertiesEditionComponent != null)
                propertiesEditionComponent.firePropertiesChanged(
                    new PropertiesEditionEvent(
                        ItemPropertiesEditionPartForm.this,
                        ChecklistViewsRepository.Item.Properties.comment,
                        PropertiesEditionEvent.COMMIT,
                        PropertiesEditionEvent.SET,
                        null,
                        comment.getText()));
            }
          }
        });
    EditingUtils.setID(comment, ChecklistViewsRepository.Item.Properties.comment);
    EditingUtils.setEEFtype(comment, "eef::Text"); // $NON-NLS-1$
    FormUtils.createHelpButton(
        widgetFactory,
        parent,
        propertiesEditionComponent.getHelpContent(
            ChecklistViewsRepository.Item.Properties.comment, ChecklistViewsRepository.FORM_KIND),
        null); //$NON-NLS-1$
    // Start of user code for createCommentText

    // End of user code
    return parent;
  }
  protected Composite createCommentsTextarea(FormToolkit widgetFactory, Composite parent) {
    Label commentsLabel =
        createDescription(
            parent,
            EntityrelationViewsRepository.Identifier.Properties.comments,
            EntityrelationMessages.IdentifierPropertiesEditionPart_CommentsLabel);
    GridData commentsLabelData = new GridData(GridData.FILL_HORIZONTAL);
    commentsLabelData.horizontalSpan = 3;
    commentsLabel.setLayoutData(commentsLabelData);
    comments =
        widgetFactory.createText(
            parent, "", SWT.BORDER | SWT.WRAP | SWT.MULTI | SWT.V_SCROLL); // $NON-NLS-1$
    GridData commentsData = new GridData(GridData.FILL_HORIZONTAL);
    commentsData.horizontalSpan = 2;
    commentsData.heightHint = 80;
    commentsData.widthHint = 200;
    comments.setLayoutData(commentsData);
    comments.addFocusListener(
        new FocusAdapter() {

          /**
           * {@inheritDoc}
           *
           * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
           */
          public void focusLost(FocusEvent e) {
            if (propertiesEditionComponent != null) {
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      IdentifierPropertiesEditionPartForm.this,
                      EntityrelationViewsRepository.Identifier.Properties.comments,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      comments.getText()));
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      IdentifierPropertiesEditionPartForm.this,
                      EntityrelationViewsRepository.Identifier.Properties.comments,
                      PropertiesEditionEvent.FOCUS_CHANGED,
                      PropertiesEditionEvent.FOCUS_LOST,
                      null,
                      comments.getText()));
            }
          }

          /**
           * @see org.eclipse.swt.events.FocusAdapter#focusGained(org.eclipse.swt.events.FocusEvent)
           */
          @Override
          public void focusGained(FocusEvent e) {
            if (propertiesEditionComponent != null) {
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      IdentifierPropertiesEditionPartForm.this,
                      null,
                      PropertiesEditionEvent.FOCUS_CHANGED,
                      PropertiesEditionEvent.FOCUS_GAINED,
                      null,
                      null));
            }
          }
        });
    EditingUtils.setID(comments, EntityrelationViewsRepository.Identifier.Properties.comments);
    EditingUtils.setEEFtype(comments, "eef::Textarea"); // $NON-NLS-1$
    FormUtils.createHelpButton(
        widgetFactory,
        parent,
        propertiesEditionComponent.getHelpContent(
            EntityrelationViewsRepository.Identifier.Properties.comments,
            EntityrelationViewsRepository.FORM_KIND),
        null); //$NON-NLS-1$
    // Start of user code for createCommentsTextArea

    // End of user code
    return parent;
  }
  /** @param groupGroup */
  protected void createTestAEOFCVFlatComboViewer(Composite parent, FormToolkit widgetFactory) {
    FormUtils.createPartLabel(
        widgetFactory,
        parent,
        NonregMessages.TestFilterPropertiesEditionPart_TestAEOFCVLabel,
        propertiesEditionComponent.isRequired(
            NonregViewsRepository.TestFilter.testAEOFCV, NonregViewsRepository.FORM_KIND));
    // create callback listener
    EObjectFlatComboViewerListener<NamedElement> listener =
        new EObjectFlatComboViewerListener<NamedElement>() {
          public void handleSet(NamedElement element) {
            propertiesEditionComponent.firePropertiesChanged(
                new PropertiesEditionEvent(
                    TestFilterPropertiesEditionPartForm.this,
                    NonregViewsRepository.TestFilter.testAEOFCV,
                    PropertiesEditionEvent.COMMIT,
                    PropertiesEditionEvent.SET,
                    null,
                    element));
          }

          public void navigateTo(NamedElement element) {}

          public NamedElement handleCreate() {
            NamedElement eObject = MiddlenonregFactory.eINSTANCE.createNamedElement();
            if (current != null
                && current instanceof ForFilters
                && ((ForFilters) current).getEOFCV() != null) {
              eObject = (NamedElement) EcoreUtil.copy(((ForFilters) current).getEOFCV());
            }
            IPropertiesEditionPolicyProvider policyProvider =
                PropertiesEditionPolicyProviderService.getInstance().getProvider(eObject);
            IPropertiesEditionPolicy editionPolicy = policyProvider.getEditionPolicy(eObject);
            if (editionPolicy != null) {
              EObject propertiesEditionObject =
                  editionPolicy.getPropertiesEditionObject(
                      new EObjectPropertiesEditionContext(
                          propertiesEditionComponent, eObject, resourceSet));
              if (propertiesEditionObject != null) {
                propertiesEditionComponent.firePropertiesChanged(
                    new PropertiesEditionEvent(
                        TestFilterPropertiesEditionPartForm.this,
                        NonregViewsRepository.TestFilter.testAEOFCV,
                        PropertiesEditionEvent.COMMIT,
                        PropertiesEditionEvent.SET,
                        null,
                        propertiesEditionObject));
                return (NamedElement) propertiesEditionObject;
              }
              if (current != null
                  && current instanceof ForFilters
                  && ((ForFilters) current).getEOFCV() != null) return eObject;
              return null;
            }
            return null;
          }
        };
    // create widget
    testAEOFCV =
        new AdvancedEObjectFlatComboViewer<NamedElement>(
            NonregMessages.TestFilterPropertiesEditionPart_TestAEOFCVLabel,
            resourceSet,
            testAEOFCVFilter,
            MiddlenonregPackage.eINSTANCE.getNamedElement(),
            listener);
    testAEOFCV.createControls(parent, widgetFactory);
    GridData testAEOFCVData = new GridData(GridData.FILL_HORIZONTAL);
    testAEOFCV.setLayoutData(testAEOFCVData);
    FormUtils.createHelpButton(
        widgetFactory,
        parent,
        propertiesEditionComponent.getHelpContent(
            NonregViewsRepository.TestFilter.testAEOFCV, NonregViewsRepository.FORM_KIND),
        null); //$NON-NLS-1$
  }
  protected Composite createOCLExpressionBodyTextarea(FormToolkit widgetFactory, Composite parent) {
    Label oCLExpressionBodyLabel =
        createDescription(
            parent,
            FiltersViewsRepository.OCLFilter.FilterExpression.oCLExpressionBody,
            FiltersMessages.OCLFilterPropertiesEditionPart_OCLExpressionBodyLabel);
    GridData oCLExpressionBodyLabelData = new GridData(GridData.FILL_HORIZONTAL);
    oCLExpressionBodyLabelData.horizontalSpan = 3;
    oCLExpressionBodyLabel.setLayoutData(oCLExpressionBodyLabelData);
    oCLExpressionBody =
        widgetFactory.createText(
            parent, "", SWT.BORDER | SWT.WRAP | SWT.MULTI | SWT.V_SCROLL); // $NON-NLS-1$
    GridData oCLExpressionBodyData = new GridData(GridData.FILL_HORIZONTAL);
    oCLExpressionBodyData.horizontalSpan = 2;
    oCLExpressionBodyData.heightHint = 80;
    oCLExpressionBodyData.widthHint = 200;
    oCLExpressionBody.setLayoutData(oCLExpressionBodyData);
    oCLExpressionBody.addFocusListener(
        new FocusAdapter() {

          /**
           * {@inheritDoc}
           *
           * @see org.eclipse.swt.events.FocusAdapter#focusLost(org.eclipse.swt.events.FocusEvent)
           */
          public void focusLost(FocusEvent e) {
            if (propertiesEditionComponent != null) {
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      OCLFilterPropertiesEditionPartForm.this,
                      FiltersViewsRepository.OCLFilter.FilterExpression.oCLExpressionBody,
                      PropertiesEditionEvent.COMMIT,
                      PropertiesEditionEvent.SET,
                      null,
                      oCLExpressionBody.getText()));
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      OCLFilterPropertiesEditionPartForm.this,
                      FiltersViewsRepository.OCLFilter.FilterExpression.oCLExpressionBody,
                      PropertiesEditionEvent.FOCUS_CHANGED,
                      PropertiesEditionEvent.FOCUS_LOST,
                      null,
                      oCLExpressionBody.getText()));
            }
          }

          /**
           * @see org.eclipse.swt.events.FocusAdapter#focusGained(org.eclipse.swt.events.FocusEvent)
           */
          @Override
          public void focusGained(FocusEvent e) {
            if (propertiesEditionComponent != null) {
              propertiesEditionComponent.firePropertiesChanged(
                  new PropertiesEditionEvent(
                      OCLFilterPropertiesEditionPartForm.this,
                      null,
                      PropertiesEditionEvent.FOCUS_CHANGED,
                      PropertiesEditionEvent.FOCUS_GAINED,
                      null,
                      null));
            }
          }
        });
    EditingUtils.setID(
        oCLExpressionBody, FiltersViewsRepository.OCLFilter.FilterExpression.oCLExpressionBody);
    EditingUtils.setEEFtype(oCLExpressionBody, "eef::Textarea"); // $NON-NLS-1$
    FormUtils.createHelpButton(
        widgetFactory,
        parent,
        propertiesEditionComponent.getHelpContent(
            FiltersViewsRepository.OCLFilter.FilterExpression.oCLExpressionBody,
            FiltersViewsRepository.FORM_KIND),
        null); //$NON-NLS-1$
    return parent;
  }