use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class BooleanLiteralImpl method setLiteral.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setLiteral(BooleanValue newLiteral) {
BooleanValue oldLiteral = literal;
literal = newLiteral == null ? LITERAL_EDEFAULT : newLiteral;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NetModelPackage.BOOLEAN_LITERAL__LITERAL, oldLiteral, literal));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class ComplexTypeDeclarationImpl 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.COMPLEX_TYPE_DECLARATION__LITERAL, oldLiteral, newLiteral);
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 EnumTypeDeclarationImpl method setSuperType.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSuperType(IntegerType newSuperType) {
if (newSuperType != superType) {
NotificationChain msgs = null;
if (superType != null)
msgs = ((InternalEObject) superType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.ENUM_TYPE_DECLARATION__SUPER_TYPE, null, msgs);
if (newSuperType != null)
msgs = ((InternalEObject) newSuperType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.ENUM_TYPE_DECLARATION__SUPER_TYPE, null, msgs);
msgs = basicSetSuperType(newSuperType, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NetModelPackage.ENUM_TYPE_DECLARATION__SUPER_TYPE, newSuperType, newSuperType));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class GenericListTypeImpl method setElementType.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setElementType(Type newElementType) {
if (newElementType != elementType) {
NotificationChain msgs = null;
if (elementType != null)
msgs = ((InternalEObject) elementType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.GENERIC_LIST_TYPE__ELEMENT_TYPE, null, msgs);
if (newElementType != null)
msgs = ((InternalEObject) newElementType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - NetModelPackage.GENERIC_LIST_TYPE__ELEMENT_TYPE, null, msgs);
msgs = basicSetElementType(newElementType, msgs);
if (msgs != null)
msgs.dispatch();
} else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, NetModelPackage.GENERIC_LIST_TYPE__ELEMENT_TYPE, newElementType, newElementType));
}
use of org.eclipse.emf.ecore.impl.ENotificationImpl in project mechanoid by robotoworks.
the class GenericListTypeImpl method basicSetElementType.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetElementType(Type newElementType, NotificationChain msgs) {
Type oldElementType = elementType;
elementType = newElementType;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, NetModelPackage.GENERIC_LIST_TYPE__ELEMENT_TYPE, oldElementType, newElementType);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations