use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class SimpleMemberAssignmentImpl method basicSetDefaultValue.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetDefaultValue(Literal newDefaultValue, NotificationChain msgs) {
Literal oldDefaultValue = defaultValue;
defaultValue = newDefaultValue;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NetModelPackage.SIMPLE_MEMBER_ASSIGNMENT__DEFAULT_VALUE, oldDefaultValue, newDefaultValue);
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 SimpleMemberAssignmentImpl method setDefaultValue.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setDefaultValue(Literal newDefaultValue) {
if (newDefaultValue != defaultValue) {
NotificationChain msgs = null;
if (defaultValue != null)
msgs = ((InternalEObject) defaultValue).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.SIMPLE_MEMBER_ASSIGNMENT__DEFAULT_VALUE, null, msgs);
if (newDefaultValue != null)
msgs = ((InternalEObject) newDefaultValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.SIMPLE_MEMBER_ASSIGNMENT__DEFAULT_VALUE, null, msgs);
msgs = basicSetDefaultValue(newDefaultValue, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NetModelPackage.SIMPLE_MEMBER_ASSIGNMENT__DEFAULT_VALUE, newDefaultValue, newDefaultValue));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class SimpleMemberImpl method setType.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setType(IntrinsicType newType) {
if (newType != type) {
NotificationChain msgs = null;
if (type != null)
msgs = ((InternalEObject) type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.SIMPLE_MEMBER__TYPE, null, msgs);
if (newType != null)
msgs = ((InternalEObject) newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.SIMPLE_MEMBER__TYPE, null, msgs);
msgs = basicSetType(newType, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NetModelPackage.SIMPLE_MEMBER__TYPE, newType, newType));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class SimpleMemberImpl method basicSetType.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetType(IntrinsicType newType, NotificationChain msgs) {
IntrinsicType oldType = type;
type = newType;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NetModelPackage.SIMPLE_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 SkipMemberImpl method basicSetLiteral.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetLiteral(ComplexTypeLiteral newLiteral, NotificationChain msgs) {
ComplexTypeLiteral oldLiteral = literal;
literal = newLiteral;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NetModelPackage.SKIP_MEMBER__LITERAL, oldLiteral, newLiteral);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations