Search in sources :

Example 36 with ENotificationImpl

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

the class MBrickletOLED128x64Impl method basicSetTfConfig.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @generated
     */
public NotificationChain basicSetTfConfig(BrickletOLEDConfiguration newTfConfig, NotificationChain msgs) {
    BrickletOLEDConfiguration oldTfConfig = tfConfig;
    tfConfig = newTfConfig;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_OLED12_8X64__TF_CONFIG, oldTfConfig, newTfConfig);
        if (msgs == null) {
            msgs = notification;
        } else {
            msgs.add(notification);
        }
    }
    return msgs;
}
Also used : BrickletOLEDConfiguration(org.openhab.binding.tinkerforge.internal.model.BrickletOLEDConfiguration) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 37 with ENotificationImpl

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

the class MBrickletOLED128x64Impl method setPositionSuffix.

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

Example 38 with ENotificationImpl

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

the class MBrickletOLED128x64Impl method setInvert.

/**
     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     *
     * @generated
     */
@Override
public void setInvert(boolean newInvert) {
    boolean oldInvert = invert;
    invert = newInvert;
    if (eNotificationRequired()) {
        eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_OLED12_8X64__INVERT, oldInvert, invert));
    }
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 39 with ENotificationImpl

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

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

Example 40 with ENotificationImpl

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

the class MBrickletOLED128x64Impl 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_OLED12_8X64__IP_CONNECTION, oldIpConnection, ipConnection));
    }
}
Also used : IPConnection(com.tinkerforge.IPConnection) 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