Search in sources :

Example 51 with NotificationChain

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

the class ExprAndImpl method setLeft.

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

Example 52 with NotificationChain

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

the class ExprBitImpl method setLeft.

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

Example 53 with NotificationChain

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

the class ExprConcatImpl method setRight.

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

Example 54 with NotificationChain

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

the class ExprEqualImpl method setLeft.

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

Example 55 with NotificationChain

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

the class ExprEqualImpl method setRight.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setRight(Expression newRight) {
    if (newRight != right) {
        NotificationChain msgs = null;
        if (right != null)
            msgs = ((InternalEObject) right).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_EQUAL__RIGHT, null, msgs);
        if (newRight != null)
            msgs = ((InternalEObject) newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_EQUAL__RIGHT, null, msgs);
        msgs = basicSetRight(newRight, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.EXPR_EQUAL__RIGHT, newRight, newRight));
}
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