Search in sources :

Example 46 with NotificationChain

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

the class ExprOrImpl 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_OR__RIGHT, null, msgs);
        if (newRight != null)
            msgs = ((InternalEObject) newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_OR__RIGHT, null, msgs);
        msgs = basicSetRight(newRight, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.EXPR_OR__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 47 with NotificationChain

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

the class ExprRelateImpl 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_RELATE__LEFT, null, msgs);
        if (newLeft != null)
            msgs = ((InternalEObject) newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_RELATE__LEFT, null, msgs);
        msgs = basicSetLeft(newLeft, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.EXPR_RELATE__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 48 with NotificationChain

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

the class ActionStatementImpl method setUri.

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

Example 49 with NotificationChain

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

the class CaseExpressionImpl method setCaseExpression.

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

Example 50 with NotificationChain

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

the class ExprAddImpl 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_ADD__LEFT, null, msgs);
        if (newLeft != null)
            msgs = ((InternalEObject) newLeft).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_ADD__LEFT, null, msgs);
        msgs = basicSetLeft(newLeft, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.EXPR_ADD__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)

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