/**
  * {@inheritDoc}
  *
  * @see
  *     org.eclipse.emf.eef.runtime.impl.components.StandardPropertiesEditionComponent#updateSemanticModel(org.eclipse.emf.eef.runtime.api.notify.IPropertiesEditionEvent)
  */
 public void updateSemanticModel(final IPropertiesEditionEvent event) {
   ViewReference viewReference = (ViewReference) semanticObject;
   if (ViewsViewsRepository.ViewReference.Properties.name == event.getAffectedEditor()) {
     viewReference.setName(
         (java.lang.String)
             EEFConverterUtil.createFromString(
                 EcorePackage.Literals.ESTRING, (String) event.getNewValue()));
   }
   if (ViewsViewsRepository.ViewReference.Properties.referencedView == event.getAffectedEditor()) {
     if (event.getKind() == PropertiesEditionEvent.SET) {
       viewSettings.setToReference((ViewElement) event.getNewValue());
     } else if (event.getKind() == PropertiesEditionEvent.ADD) {
       EReferencePropertiesEditionContext context =
           new EReferencePropertiesEditionContext(
               editingContext, this, viewSettings, editingContext.getAdapterFactory());
       PropertiesEditingProvider provider =
           (PropertiesEditingProvider)
               editingContext
                   .getAdapterFactory()
                   .adapt(semanticObject, PropertiesEditingProvider.class);
       if (provider != null) {
         PropertiesEditingPolicy policy = provider.getPolicy(context);
         if (policy instanceof CreateEditingPolicy) {
           policy.execute();
         }
       }
     }
   }
 }
  /**
   * {@inheritDoc}
   *
   * @see
   *     org.eclipse.emf.eef.runtime.api.component.IPropertiesEditionComponent#initPart(java.lang.Object,
   *     int, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.resource.ResourceSet)
   */
  public void initPart(Object key, int kind, EObject elt, ResourceSet allResource) {
    setInitializing(true);
    if (editingPart != null && key == partKey) {
      editingPart.setContext(elt, allResource);
      final ViewReference viewReference = (ViewReference) elt;
      final ViewReferencePropertiesEditionPart basePart =
          (ViewReferencePropertiesEditionPart) editingPart;
      // init values
      if (viewReference.getName() != null
          && isAccessible(ViewsViewsRepository.ViewReference.Properties.name))
        basePart.setName(
            EEFConverterUtil.convertToString(
                EcorePackage.Literals.ESTRING, viewReference.getName()));

      if (isAccessible(ViewsViewsRepository.ViewReference.Properties.referencedView)) {
        // init part
        viewSettings =
            new EObjectFlatComboSettings(
                viewReference, ViewsPackage.eINSTANCE.getViewReference_View());
        basePart.initReferencedView(viewSettings);
        // set the button mode
        basePart.setReferencedViewButtonMode(ButtonsModeEnum.BROWSE);
      }
      // init filters

      if (isAccessible(ViewsViewsRepository.ViewReference.Properties.referencedView)) {
        basePart.addFilterToReferencedView(
            new ViewerFilter() {

              /**
               * {@inheritDoc}
               *
               * @see
               *     org.eclipse.jface.viewers.ViewerFilter#select(org.eclipse.jface.viewers.Viewer,
               *     java.lang.Object, java.lang.Object)
               */
              public boolean select(Viewer viewer, Object parentElement, Object element) {
                return (element instanceof ViewElement);
              }
            });
        // Start of user code for additional businessfilters for view

        // End of user code
      }
      // init values for referenced views

      // init filters for referenced views

    }
    setInitializing(false);
  }