Search in sources :

Example 81 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl 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 82 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.

the class SelectStatementImpl method basicSetLimitOffset.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetLimitOffset(Expression newLimitOffset, NotificationChain msgs) {
    Expression oldLimitOffset = limitOffset;
    limitOffset = newLimitOffset;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_STATEMENT__LIMIT_OFFSET, oldLimitOffset, newLimitOffset);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : SelectCoreExpression(com.robotoworks.mechanoid.db.sqliteModel.SelectCoreExpression) Expression(com.robotoworks.mechanoid.db.sqliteModel.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 83 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.

the class SelectStatementImpl method basicSetLimit.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetLimit(Expression newLimit, NotificationChain msgs) {
    Expression oldLimit = limit;
    limit = newLimit;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_STATEMENT__LIMIT, oldLimit, newLimit);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : SelectCoreExpression(com.robotoworks.mechanoid.db.sqliteModel.SelectCoreExpression) Expression(com.robotoworks.mechanoid.db.sqliteModel.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 84 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl 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 85 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl 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

ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)2023 InternalEObject (org.eclipse.emf.ecore.InternalEObject)773 NotificationChain (org.eclipse.emf.common.notify.NotificationChain)629 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)111 Logger (org.slf4j.Logger)110 IPConnection (com.tinkerforge.IPConnection)51 DecimalValue (org.openhab.binding.tinkerforge.internal.types.DecimalValue)51 BigDecimal (java.math.BigDecimal)47 Expression (com.robotoworks.mechanoid.db.sqliteModel.Expression)38 Expression (org.eclipse.xtext.testlanguages.backtracking.beeLangTestLanguage.Expression)28 TFBaseConfiguration (org.openhab.binding.tinkerforge.internal.model.TFBaseConfiguration)26 HighLowValue (org.openhab.binding.tinkerforge.internal.types.HighLowValue)17 OnOffValue (org.openhab.binding.tinkerforge.internal.types.OnOffValue)15 EObject (org.eclipse.emf.ecore.EObject)12 XExpression (org.eclipse.xtext.xbase.XExpression)12 MSubDeviceHolder (org.openhab.binding.tinkerforge.internal.model.MSubDeviceHolder)12 TableDefinition (com.robotoworks.mechanoid.db.sqliteModel.TableDefinition)9 Expression (org.eclipse.xtext.xtext.generator.parser.antlr.splitting.simpleExpressions.Expression)8 Expression (org.eclipse.xtext.resource.bug385636.Expression)7 Expression_VariableName (org.eclipse.xtext.resource.bug385636.Expression_VariableName)7