/**
   * {@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 Sequence sequence = (Sequence) elt;
      final SequencePropertiesEditionPart sequencePart =
          (SequencePropertiesEditionPart) editingPart;
      // init values
      if (isAccessible(DatabaseViewsRepository.Sequence.Properties.name))
        sequencePart.setName(
            EEFConverterUtil.convertToString(EcorePackage.Literals.ESTRING, sequence.getName()));

      if (isAccessible(DatabaseViewsRepository.Sequence.Properties.StartIncrement.start))
        sequencePart.setStart(
            EEFConverterUtil.convertToString(
                EcorePackage.Literals.EINTEGER_OBJECT, sequence.getStart()));

      if (isAccessible(DatabaseViewsRepository.Sequence.Properties.StartIncrement.increment))
        sequencePart.setIncrement(
            EEFConverterUtil.convertToString(
                EcorePackage.Literals.EINTEGER_OBJECT, sequence.getIncrement()));

      if (isAccessible(DatabaseViewsRepository.Sequence.Properties.MinMax.minValue))
        sequencePart.setMinValue(
            EEFConverterUtil.convertToString(
                EcorePackage.Literals.EINTEGER_OBJECT, sequence.getMinValue()));

      if (isAccessible(DatabaseViewsRepository.Sequence.Properties.MinMax.maxValue))
        sequencePart.setMaxValue(
            EEFConverterUtil.convertToString(
                EcorePackage.Literals.EINTEGER_OBJECT, sequence.getMaxValue()));

      if (isAccessible(DatabaseViewsRepository.Sequence.Properties.CycleCacheSize.cycle)) {
        sequencePart.setCycle(sequence.isCycle());
      }
      if (isAccessible(DatabaseViewsRepository.Sequence.Properties.CycleCacheSize.cacheSize))
        sequencePart.setCacheSize(
            EEFConverterUtil.convertToString(
                EcorePackage.Literals.EINTEGER_OBJECT, sequence.getCacheSize()));

      if (isAccessible(DatabaseViewsRepository.Sequence.Properties.comments))
        sequencePart.setComments(
            EcoreUtil.convertToString(EcorePackage.Literals.ESTRING, sequence.getComments()));
      // init filters

      // init values for referenced views

      // init filters for referenced views

    }
    setInitializing(false);
  }
 /**
  * {@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) {
   Sequence sequence = (Sequence) semanticObject;
   if (DatabaseViewsRepository.Sequence.Properties.name == event.getAffectedEditor()) {
     sequence.setName(
         (java.lang.String)
             EEFConverterUtil.createFromString(
                 EcorePackage.Literals.ESTRING, (String) event.getNewValue()));
   }
   if (DatabaseViewsRepository.Sequence.Properties.StartIncrement.start
       == event.getAffectedEditor()) {
     sequence.setStart(
         (java.lang.Integer)
             EEFConverterUtil.createFromString(
                 EcorePackage.Literals.EINTEGER_OBJECT, (String) event.getNewValue()));
   }
   if (DatabaseViewsRepository.Sequence.Properties.StartIncrement.increment
       == event.getAffectedEditor()) {
     sequence.setIncrement(
         (java.lang.Integer)
             EEFConverterUtil.createFromString(
                 EcorePackage.Literals.EINTEGER_OBJECT, (String) event.getNewValue()));
   }
   if (DatabaseViewsRepository.Sequence.Properties.MinMax.minValue == event.getAffectedEditor()) {
     sequence.setMinValue(
         (java.lang.Integer)
             EEFConverterUtil.createFromString(
                 EcorePackage.Literals.EINTEGER_OBJECT, (String) event.getNewValue()));
   }
   if (DatabaseViewsRepository.Sequence.Properties.MinMax.maxValue == event.getAffectedEditor()) {
     sequence.setMaxValue(
         (java.lang.Integer)
             EEFConverterUtil.createFromString(
                 EcorePackage.Literals.EINTEGER_OBJECT, (String) event.getNewValue()));
   }
   if (DatabaseViewsRepository.Sequence.Properties.CycleCacheSize.cycle
       == event.getAffectedEditor()) {
     sequence.setCycle((Boolean) event.getNewValue());
   }
   if (DatabaseViewsRepository.Sequence.Properties.CycleCacheSize.cacheSize
       == event.getAffectedEditor()) {
     sequence.setCacheSize(
         (java.lang.Integer)
             EEFConverterUtil.createFromString(
                 EcorePackage.Literals.EINTEGER_OBJECT, (String) event.getNewValue()));
   }
   if (DatabaseViewsRepository.Sequence.Properties.comments == event.getAffectedEditor()) {
     sequence.setComments(
         (java.lang.String)
             EEFConverterUtil.createFromString(
                 EcorePackage.Literals.ESTRING, (String) event.getNewValue()));
   }
 }