use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletOLED128x64Impl method setPosition.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void setPosition(char newPosition) {
char oldPosition = position;
position = newPosition;
if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_OLED12_8X64__POSITION, oldPosition, position));
}
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletMultiTouchImpl 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_MULTI_TOUCH__IP_CONNECTION, oldIpConnection, ipConnection));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletMultiTouchImpl method setBrickd.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void setBrickd(MBrickd newBrickd) {
if (newBrickd != eInternalContainer() || (eContainerFeatureID() != ModelPackage.MBRICKLET_MULTI_TOUCH__BRICKD && newBrickd != null)) {
if (EcoreUtil.isAncestor(this, newBrickd))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newBrickd != null)
msgs = ((InternalEObject) newBrickd).eInverseAdd(this, ModelPackage.MBRICKD__MDEVICES, MBrickd.class, msgs);
msgs = basicSetBrickd(newBrickd, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_MULTI_TOUCH__BRICKD, newBrickd, newBrickd));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletOLE64x48Impl method setPoll.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void setPoll(boolean newPoll) {
boolean oldPoll = poll;
poll = newPoll;
if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_OLE6_4X48__POLL, oldPoll, poll));
}
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletOLE64x48Impl method setTfConfig.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void setTfConfig(BrickletOLEDConfiguration newTfConfig) {
if (newTfConfig != tfConfig) {
NotificationChain msgs = null;
if (tfConfig != null) {
msgs = ((InternalEObject) tfConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ModelPackage.MBRICKLET_OLE6_4X48__TF_CONFIG, null, msgs);
}
if (newTfConfig != null) {
msgs = ((InternalEObject) newTfConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ModelPackage.MBRICKLET_OLE6_4X48__TF_CONFIG, null, msgs);
}
msgs = basicSetTfConfig(newTfConfig, msgs);
if (msgs != null) {
msgs.dispatch();
}
} else if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_OLE6_4X48__TF_CONFIG, newTfConfig, newTfConfig));
}
}
Aggregations