Search in sources :

Example 96 with NotificationChain

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

the class SelectExpressionImpl method setWhere.

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

Example 97 with NotificationChain

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

the class SelectStatementExpressionImpl method setSelect.

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

Example 98 with NotificationChain

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

the class SelectStatementImpl method setOrderby.

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

Example 99 with NotificationChain

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

the class SelectStatementImpl method setCore.

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

Example 100 with NotificationChain

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

the class SelectStatementImpl method setLimit.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setLimit(Expression newLimit) {
    if (newLimit != limit) {
        NotificationChain msgs = null;
        if (limit != null)
            msgs = ((InternalEObject) limit).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_STATEMENT__LIMIT, null, msgs);
        if (newLimit != null)
            msgs = ((InternalEObject) newLimit).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_STATEMENT__LIMIT, null, msgs);
        msgs = basicSetLimit(newLimit, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_STATEMENT__LIMIT, newLimit, newLimit));
}
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)289 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)289 InternalEObject (org.eclipse.emf.ecore.InternalEObject)267 MSubDeviceHolder (org.openhab.binding.tinkerforge.internal.model.MSubDeviceHolder)12 MBrickd (org.openhab.binding.tinkerforge.internal.model.MBrickd)5