use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletPTCImpl method setBrickd.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void setBrickd(MBrickd newBrickd) {
if (newBrickd != eInternalContainer() || (eContainerFeatureID() != ModelPackage.MBRICKLET_PTC__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_PTC__BRICKD, newBrickd, newBrickd));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletOLE64x48Impl 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_OLE6_4X48__IP_CONNECTION, oldIpConnection, ipConnection));
}
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletOLE64x48Impl 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_OLE6_4X48__INVERT, oldInvert, invert));
}
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletOLE64x48Impl 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_OLE6_4X48__POSITION_SUFFIX, oldPositionSuffix, positionSuffix));
}
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletOLE64x48Impl 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_OLE6_4X48__LOGGER, oldLogger, logger));
}
}
Aggregations