Search in sources :

Example 41 with NotificationChain

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

the class LiteralDefaultValueImpl method setLiteral.

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

Example 42 with NotificationChain

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

the class ModelImpl method setDatabase.

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

Example 43 with NotificationChain

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

the class NotNullConstraintImpl method setConflictClause.

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

Example 44 with NotificationChain

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

the class ExprMultImpl 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_MULT__RIGHT, null, msgs);
        if (newRight != null)
            msgs = ((InternalEObject) newRight).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.EXPR_MULT__RIGHT, null, msgs);
        msgs = basicSetRight(newRight, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.EXPR_MULT__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 45 with NotificationChain

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

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