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;
 }
  /**
   * @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;
  }
 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);
 }
  /** @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 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$
  }