Search in sources :

Example 26 with ENotificationImpl

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

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

Example 27 with ENotificationImpl

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

the class MBrickletOLED128x64Impl method setContrast.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @generated
     */
@Override
public void setContrast(short newContrast) {
    short oldContrast = contrast;
    contrast = newContrast;
    if (eNotificationRequired()) {
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_OLED12_8X64__CONTRAST, oldContrast, contrast));
    }
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 28 with ENotificationImpl

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

the class MBrickletOLED128x64Impl method setUid.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @generated
     */
@Override
public void setUid(String newUid) {
    String oldUid = uid;
    uid = newUid;
    if (eNotificationRequired()) {
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_OLED12_8X64__UID, oldUid, uid));
    }
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 29 with ENotificationImpl

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

the class MBrickletOLED128x64Impl method setDeviceIdentifier.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @generated
     */
@Override
public void setDeviceIdentifier(int newDeviceIdentifier) {
    int oldDeviceIdentifier = deviceIdentifier;
    deviceIdentifier = newDeviceIdentifier;
    if (eNotificationRequired()) {
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_OLED12_8X64__DEVICE_IDENTIFIER, oldDeviceIdentifier, deviceIdentifier));
    }
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 30 with ENotificationImpl

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

the class MBrickletPTCImpl method setTinkerforgeDevice.

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

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