use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletSoundIntensityImpl method basicSetTfConfig.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
public NotificationChain basicSetTfConfig(TFBaseConfiguration newTfConfig, NotificationChain msgs) {
TFBaseConfiguration oldTfConfig = tfConfig;
tfConfig = newTfConfig;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_SOUND_INTENSITY__TF_CONFIG, oldTfConfig, newTfConfig);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletSoundIntensityImpl 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_SOUND_INTENSITY__IP_CONNECTION, oldIpConnection, ipConnection));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletSoundIntensityImpl method setThreshold.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void setThreshold(BigDecimal newThreshold) {
BigDecimal oldThreshold = threshold;
threshold = newThreshold;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_SOUND_INTENSITY__THRESHOLD, oldThreshold, threshold));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletRotaryEncoderImpl 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_ROTARY_ENCODER__IP_CONNECTION, oldIpConnection, ipConnection));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletRotaryEncoderImpl 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_ROTARY_ENCODER__ENABLED_A, oldEnabledA, enabledA));
}
Aggregations