Search in sources :

Example 11 with ENotificationImpl

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

the class MBrickletSegmentDisplay4x7Impl method setTinkerforgeDevice.

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

Example 12 with ENotificationImpl

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

the class MBrickletSegmentDisplay4x7Impl 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_SEGMENT_DISPLAY4X7__ENABLED_A, oldEnabledA, enabledA));
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 13 with ENotificationImpl

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

the class MBrickletSegmentDisplay4x7Impl 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_SEGMENT_DISPLAY4X7__LOGGER, oldLogger, logger));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Logger(org.slf4j.Logger)

Example 14 with ENotificationImpl

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

the class MBrickletSolidStateRelayImpl method setIpConnection.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated
     */
@Override
public void setIpConnection(IPConnection newIpConnection) {
    IPConnection oldIpConnection = ipConnection;
    ipConnection = newIpConnection;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_SOLID_STATE_RELAY__IP_CONNECTION, oldIpConnection, ipConnection));
}
Also used : IPConnection(com.tinkerforge.IPConnection) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 15 with ENotificationImpl

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

the class MBrickletPTCImpl method setTfConfig.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * 
     * @generated
     */
@Override
public void setTfConfig(TFPTCBrickletConfiguration newTfConfig) {
    if (newTfConfig != tfConfig) {
        NotificationChain msgs = null;
        if (tfConfig != null)
            msgs = ((InternalEObject) tfConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ModelPackage.MBRICKLET_PTC__TF_CONFIG, null, msgs);
        if (newTfConfig != null)
            msgs = ((InternalEObject) newTfConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ModelPackage.MBRICKLET_PTC__TF_CONFIG, null, msgs);
        msgs = basicSetTfConfig(newTfConfig, msgs);
        if (msgs != null)
            msgs.dispatch();
    } else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_PTC__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)

Aggregations

ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1120 InternalEObject (org.eclipse.emf.ecore.InternalEObject)310 NotificationChain (org.eclipse.emf.common.notify.NotificationChain)289 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)46 Expression (com.robotoworks.mechanoid.db.sqliteModel.Expression)38 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 MSubDeviceHolder (org.openhab.binding.tinkerforge.internal.model.MSubDeviceHolder)12 TableDefinition (com.robotoworks.mechanoid.db.sqliteModel.TableDefinition)9 SelectCoreExpression (com.robotoworks.mechanoid.db.sqliteModel.SelectCoreExpression)5 MBrickd (org.openhab.binding.tinkerforge.internal.model.MBrickd)5 PercentValue (org.openhab.binding.tinkerforge.internal.types.PercentValue)5 ColumnSource (com.robotoworks.mechanoid.db.sqliteModel.ColumnSource)4 ConflictClause (com.robotoworks.mechanoid.db.sqliteModel.ConflictClause)4 ButtonConfiguration (org.openhab.binding.tinkerforge.internal.model.ButtonConfiguration)4