Search in sources :

Example 36 with NotificationChain

use of org.eclipse.emf.common.notify.NotificationChain in project mechanoid by robotoworks.

the class CaseImpl method setThenExpression.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setThenExpression(Expression newThenExpression) {
    if (newThenExpression != thenExpression) {
        NotificationChain msgs = null;
        if (thenExpression != null)
            msgs = ((InternalEObject) thenExpression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CASE__THEN_EXPRESSION, null, msgs);
        if (newThenExpression != null)
            msgs = ((InternalEObject) newThenExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CASE__THEN_EXPRESSION, null, msgs);
        msgs = basicSetThenExpression(newThenExpression, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.CASE__THEN_EXPRESSION, newThenExpression, newThenExpression));
}
Also used : NotificationChain(org.eclipse.emf.common.notify.NotificationChain) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) InternalEObject(org.eclipse.emf.ecore.InternalEObject)

Example 37 with NotificationChain

use of org.eclipse.emf.common.notify.NotificationChain in project mechanoid by robotoworks.

the class CaseImpl method setWhenExpression.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setWhenExpression(Expression newWhenExpression) {
    if (newWhenExpression != whenExpression) {
        NotificationChain msgs = null;
        if (whenExpression != null)
            msgs = ((InternalEObject) whenExpression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CASE__WHEN_EXPRESSION, null, msgs);
        if (newWhenExpression != null)
            msgs = ((InternalEObject) newWhenExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CASE__WHEN_EXPRESSION, null, msgs);
        msgs = basicSetWhenExpression(newWhenExpression, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.CASE__WHEN_EXPRESSION, newWhenExpression, newWhenExpression));
}
Also used : NotificationChain(org.eclipse.emf.common.notify.NotificationChain) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) InternalEObject(org.eclipse.emf.ecore.InternalEObject)

Example 38 with NotificationChain

use of org.eclipse.emf.common.notify.NotificationChain in project mechanoid by robotoworks.

the class CastExpressionImpl method setExpression.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setExpression(Expression newExpression) {
    if (newExpression != expression) {
        NotificationChain msgs = null;
        if (expression != null)
            msgs = ((InternalEObject) expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CAST_EXPRESSION__EXPRESSION, null, msgs);
        if (newExpression != null)
            msgs = ((InternalEObject) newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CAST_EXPRESSION__EXPRESSION, null, msgs);
        msgs = basicSetExpression(newExpression, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.CAST_EXPRESSION__EXPRESSION, newExpression, newExpression));
}
Also used : NotificationChain(org.eclipse.emf.common.notify.NotificationChain) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) InternalEObject(org.eclipse.emf.ecore.InternalEObject)

Example 39 with NotificationChain

use of org.eclipse.emf.common.notify.NotificationChain in project mechanoid by robotoworks.

the class CheckConstraintImpl method setExpression.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setExpression(Expression newExpression) {
    if (newExpression != expression) {
        NotificationChain msgs = null;
        if (expression != null)
            msgs = ((InternalEObject) expression).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CHECK_CONSTRAINT__EXPRESSION, null, msgs);
        if (newExpression != null)
            msgs = ((InternalEObject) newExpression).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.CHECK_CONSTRAINT__EXPRESSION, null, msgs);
        msgs = basicSetExpression(newExpression, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.CHECK_CONSTRAINT__EXPRESSION, newExpression, newExpression));
}
Also used : NotificationChain(org.eclipse.emf.common.notify.NotificationChain) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) InternalEObject(org.eclipse.emf.ecore.InternalEObject)

Example 40 with NotificationChain

use of org.eclipse.emf.common.notify.NotificationChain in project mechanoid by robotoworks.

the class JoinSourceImpl method setSource.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setSource(SingleSource newSource) {
    if (newSource != source) {
        NotificationChain msgs = null;
        if (source != null)
            msgs = ((InternalEObject) source).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.JOIN_SOURCE__SOURCE, null, msgs);
        if (newSource != null)
            msgs = ((InternalEObject) newSource).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.JOIN_SOURCE__SOURCE, null, msgs);
        msgs = basicSetSource(newSource, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.JOIN_SOURCE__SOURCE, newSource, newSource));
}
Also used : NotificationChain(org.eclipse.emf.common.notify.NotificationChain) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) InternalEObject(org.eclipse.emf.ecore.InternalEObject)

Aggregations

NotificationChain (org.eclipse.emf.common.notify.NotificationChain)629 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)629 InternalEObject (org.eclipse.emf.ecore.InternalEObject)607 MSubDeviceHolder (org.openhab.binding.tinkerforge.internal.model.MSubDeviceHolder)12 MBrickd (org.openhab.binding.tinkerforge.internal.model.MBrickd)5