Search in sources :

Example 21 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.

the class MBrickletMotionDetectorImpl method setTinkerforgeDevice.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated
     */
@Override
public void setTinkerforgeDevice(BrickletMotionDetector newTinkerforgeDevice) {
    BrickletMotionDetector oldTinkerforgeDevice = tinkerforgeDevice;
    tinkerforgeDevice = newTinkerforgeDevice;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_MOTION_DETECTOR__TINKERFORGE_DEVICE, oldTinkerforgeDevice, tinkerforgeDevice));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) BrickletMotionDetector(com.tinkerforge.BrickletMotionDetector) MBrickletMotionDetector(org.openhab.binding.tinkerforge.internal.model.MBrickletMotionDetector)

Example 22 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.

the class MBrickletMotionDetectorImpl method setLogger.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated
     */
@Override
public void setLogger(Logger newLogger) {
    Logger oldLogger = logger;
    logger = newLogger;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_MOTION_DETECTOR__LOGGER, oldLogger, logger));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Logger(org.slf4j.Logger)

Example 23 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.

the class MBrickletMotionDetectorImpl method setSensorValue.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated
     */
@Override
public void setSensorValue(HighLowValue newSensorValue) {
    HighLowValue oldSensorValue = sensorValue;
    sensorValue = newSensorValue;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_MOTION_DETECTOR__SENSOR_VALUE, oldSensorValue, sensorValue));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) HighLowValue(org.openhab.binding.tinkerforge.internal.types.HighLowValue)

Example 24 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.

the class MBrickletMultiTouchImpl method setTfConfig.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated
     */
@Override
public void setTfConfig(BrickletMultiTouchConfiguration newTfConfig) {
    if (newTfConfig != tfConfig) {
        NotificationChain msgs = null;
        if (tfConfig != null)
            msgs = ((InternalEObject) tfConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ModelPackage.MBRICKLET_MULTI_TOUCH__TF_CONFIG, null, msgs);
        if (newTfConfig != null)
            msgs = ((InternalEObject) newTfConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ModelPackage.MBRICKLET_MULTI_TOUCH__TF_CONFIG, null, msgs);
        msgs = basicSetTfConfig(newTfConfig, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_MULTI_TOUCH__TF_CONFIG, newTfConfig, newTfConfig));
}
Also used : NotificationChain(org.eclipse.emf.common.notify.NotificationChain) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) InternalEObject(org.eclipse.emf.ecore.InternalEObject)

Example 25 with ENotificationImpl

use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.

the class MBrickletMultiTouchImpl method setEnabledA.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated
     */
@Override
public void setEnabledA(AtomicBoolean newEnabledA) {
    AtomicBoolean oldEnabledA = enabledA;
    enabledA = newEnabledA;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_MULTI_TOUCH__ENABLED_A, oldEnabledA, enabledA));
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

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