Search in sources :

Example 86 with ENotificationImpl

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

the class SelectStatementImpl method basicSetCore.

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

Example 87 with ENotificationImpl

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

the class SingleSourceJoinImpl method basicSetJoinSource.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetJoinSource(JoinSource newJoinSource, NotificationChain msgs) {
    JoinSource oldJoinSource = joinSource;
    joinSource = newJoinSource;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SINGLE_SOURCE_JOIN__JOIN_SOURCE, oldJoinSource, newJoinSource);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : JoinSource(com.robotoworks.mechanoid.db.sqliteModel.JoinSource) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 88 with ENotificationImpl

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

the class SingleSourceSelectStatementImpl method basicSetSelectStatement.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetSelectStatement(SelectStatement newSelectStatement, NotificationChain msgs) {
    SelectStatement oldSelectStatement = selectStatement;
    selectStatement = newSelectStatement;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SINGLE_SOURCE_SELECT_STATEMENT__SELECT_STATEMENT, oldSelectStatement, newSelectStatement);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : SingleSourceSelectStatement(com.robotoworks.mechanoid.db.sqliteModel.SingleSourceSelectStatement) SelectStatement(com.robotoworks.mechanoid.db.sqliteModel.SelectStatement) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 89 with ENotificationImpl

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

the class SingleSourceSelectStatementImpl method setSelectStatement.

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

Example 90 with ENotificationImpl

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

the class SingleSourceTableImpl method getTableReference.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public TableDefinition getTableReference() {
    if (tableReference != null && tableReference.eIsProxy()) {
        InternalEObject oldTableReference = (InternalEObject) tableReference;
        tableReference = (TableDefinition) eResolveProxy(oldTableReference);
        if (tableReference != oldTableReference) {
            if (eNotificationRequired())
                eNotify(new ENotificationImpl(this, Notification.RESOLVE, SqliteModelPackage.SINGLE_SOURCE_TABLE__TABLE_REFERENCE, oldTableReference, tableReference));
        }
    }
    return tableReference;
}
Also used : 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