use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class TypedMemberImpl method basicSetType.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetType(Type newType, NotificationChain msgs) {
Type oldType = type;
type = newType;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NetModelPackage.TYPED_MEMBER__TYPE, oldType, newType);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class TypedMemberImpl method setType.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setType(Type newType) {
if (newType != type) {
NotificationChain msgs = null;
if (type != null)
msgs = ((InternalEObject) type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.TYPED_MEMBER__TYPE, null, msgs);
if (newType != null)
msgs = ((InternalEObject) newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.TYPED_MEMBER__TYPE, null, msgs);
msgs = basicSetType(newType, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NetModelPackage.TYPED_MEMBER__TYPE, newType, newType));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class UserTypeImpl method setDeclaration.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDeclaration(UserTypeDeclaration newDeclaration) {
UserTypeDeclaration oldDeclaration = declaration;
declaration = newDeclaration;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NetModelPackage.USER_TYPE__DECLARATION, oldDeclaration, declaration));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class SelectExpressionImpl method setHaving.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setHaving(HavingExpressions newHaving) {
if (newHaving != having) {
NotificationChain msgs = null;
if (having != null)
msgs = ((InternalEObject) having).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_EXPRESSION__HAVING, null, msgs);
if (newHaving != null)
msgs = ((InternalEObject) newHaving).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_EXPRESSION__HAVING, null, msgs);
msgs = basicSetHaving(newHaving, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_EXPRESSION__HAVING, newHaving, newHaving));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class SelectExpressionImpl method setSource.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSource(JoinSource newSource) {
if (newSource != source) {
NotificationChain msgs = null;
if (source != null)
msgs = ((InternalEObject) source).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_EXPRESSION__SOURCE, null, msgs);
if (newSource != null)
msgs = ((InternalEObject) newSource).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SqliteModelPackage.SELECT_EXPRESSION__SOURCE, null, msgs);
msgs = basicSetSource(newSource, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_EXPRESSION__SOURCE, newSource, newSource));
}
Aggregations