/**
  * {@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) {
   Datetime datetime = (Datetime) semanticObject;
   if (SACMViewsRepository.Datetime.Properties.datetime_ == event.getAffectedEditor()) {
     datetime.setDatetime(
         (java.lang.String)
             EEFConverterUtil.createFromString(
                 SACMPackage.Literals.STRING, (String) event.getNewValue()));
   }
 }
  /**
   * {@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 Datetime datetime = (Datetime) elt;
      final DatetimePropertiesEditionPart basePart = (DatetimePropertiesEditionPart) editingPart;
      // init values
      if (isAccessible(SACMViewsRepository.Datetime.Properties.datetime_))
        basePart.setDatetime(
            EEFConverterUtil.convertToString(SACMPackage.Literals.STRING, datetime.getDatetime()));

      // init filters

      // init values for referenced views

      // init filters for referenced views

    }
    setInitializing(false);
  }
Ejemplo n.º 3
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 public Datetime getDatetime() {
   if (datetime != null && datetime.eIsProxy()) {
     InternalEObject oldDatetime = (InternalEObject) datetime;
     datetime = (Datetime) eResolveProxy(oldDatetime);
     if (datetime != oldDatetime) {
       if (eNotificationRequired())
         eNotify(
             new ENotificationImpl(
                 this,
                 Notification.RESOLVE,
                 EvidencePackage.START_TIME__DATETIME,
                 oldDatetime,
                 datetime));
     }
   }
   return datetime;
 }