/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setEPackage(EPackage newEPackage) { if (newEPackage != ePackage) { NotificationChain msgs = null; if (ePackage != null) msgs = ((InternalEObject)ePackage).eInverseRemove(this, EcorePackage.EPACKAGE__EFACTORY_INSTANCE, EPackage.class, msgs); if (newEPackage != null) msgs = ((InternalEObject)newEPackage).eInverseAdd(this, EcorePackage.EPACKAGE__EFACTORY_INSTANCE, EPackage.class, msgs); msgs = basicSetEPackage(newEPackage, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EcorePackage.EFACTORY__EPACKAGE, newEPackage, newEPackage)); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setEPackage(EPackage newEPackage) { if (newEPackage != ePackage) { NotificationChain msgs = null; if (ePackage != null) msgs = ((InternalEObject)ePackage).eInverseRemove(this, EcorePackage.EPACKAGE__EFACTORY_INSTANCE, EPackage.class, msgs); if (newEPackage != null) msgs = ((InternalEObject)newEPackage).eInverseAdd(this, EcorePackage.EPACKAGE__EFACTORY_INSTANCE, EPackage.class, msgs); msgs = basicSetEPackage(newEPackage, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, EcorePackage.EFACTORY__EPACKAGE, newEPackage, newEPackage)); }