use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletOLE64x48Impl method setConnectedUid.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void setConnectedUid(String newConnectedUid) {
String oldConnectedUid = connectedUid;
connectedUid = newConnectedUid;
if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_OLE6_4X48__CONNECTED_UID, oldConnectedUid, connectedUid));
}
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project openhab1-addons by openhab.
the class MBrickletOLE64x48Impl method setPositionPrefix.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
@Override
public void setPositionPrefix(String newPositionPrefix) {
String oldPositionPrefix = positionPrefix;
positionPrefix = newPositionPrefix;
if (eNotificationRequired()) {
eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_OLE6_4X48__POSITION_PREFIX, oldPositionPrefix, positionPrefix));
}
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class OperationImpl method setUniqueClause.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setUniqueClause(UniqueClause newUniqueClause) {
if (newUniqueClause != uniqueClause) {
NotificationChain msgs = null;
if (uniqueClause != null)
msgs = ((InternalEObject) uniqueClause).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OpServiceModelPackage.OPERATION__UNIQUE_CLAUSE, null, msgs);
if (newUniqueClause != null)
msgs = ((InternalEObject) newUniqueClause).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OpServiceModelPackage.OPERATION__UNIQUE_CLAUSE, null, msgs);
msgs = basicSetUniqueClause(newUniqueClause, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, OpServiceModelPackage.OPERATION__UNIQUE_CLAUSE, newUniqueClause, newUniqueClause));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class UpdateColumnExpressionImpl method setColumnName.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setColumnName(ColumnDef newColumnName) {
ColumnDef oldColumnName = columnName;
columnName = newColumnName;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.UPDATE_COLUMN_EXPRESSION__COLUMN_NAME, oldColumnName, columnName));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class UpdateColumnExpressionImpl method basicSetExpression.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetExpression(Expression newExpression, NotificationChain msgs) {
Expression oldExpression = expression;
expression = newExpression;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.UPDATE_COLUMN_EXPRESSION__EXPRESSION, oldExpression, newExpression);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations