1 | public NotificationChain basicSetNestedIn(MappingHelper newNestedIn, NotificationChain msgs)↵ | | 1 | public NotificationChain basicSetNestedIn(Mapping newNestedIn, NotificationChain msgs)↵
|
2 | {↵ | | 2 | {↵
|
3 | msgs = eBasicSetContainer((InternalEObject)newNestedIn, MappingPackage.MAPPING_HELPER__NESTED_IN, msgs);↵ | | 3 | msgs = eBasicSetContainer((InternalEObject)newNestedIn, MappingPackage.MAPPING__NESTED_IN, msgs);↵
|
4 | return msgs;↵ | | 4 | return msgs;↵
|
5 | }↵ | | 5 | }↵
|
|
6 | /**↵ | | 6 | /**↵
|
7 | * <!-- begin-user-doc -->↵ | | 7 | * <!-- begin-user-doc -->↵
|
8 | * <!-- end-user-doc -->↵ | | 8 | * <!-- end-user-doc -->↵
|
9 | * @generated↵ | | 9 | * @generated↵
|
10 | */↵ | | 10 | */↵
|
11 | public void setNestedIn(MappingHelper newNestedIn)↵ | | 11 | public void setNestedIn(Mapping newNestedIn)↵
|
12 | {↵ | | 12 | {↵
|
13 | if (newNestedIn != eInternalContainer() || (eContainerFeatureID != MappingPackage.MAPPING_HELPER__NESTED_IN && newNestedIn != null))↵ | | 13 | if (newNestedIn != eInternalContainer() || (eContainerFeatureID != MappingPackage.MAPPING__NESTED_IN && newNestedIn != null))↵
|
14 | {↵ | | 14 | {↵
|
15 | if (EcoreUtil.isAncestor(this, newNestedIn))↵ | | 15 | if (EcoreUtil.isAncestor(this, newNestedIn))↵
|
16 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString());↵ | | 16 | throw new IllegalArgumentException("Recursive containment not allowed for " + toString());↵
|
17 | NotificationChain msgs = null;↵ | | 17 | NotificationChain msgs = null;↵
|
18 | if (eInternalContainer() != null)↵ | | 18 | if (eInternalContainer() != null)↵
|
19 | msgs = eBasicRemoveFromContainer(msgs);↵ | | 19 | msgs = eBasicRemoveFromContainer(msgs);↵
|
20 | if (newNestedIn != null)↵ | | 20 | if (newNestedIn != null)↵
|
21 | msgs = ((InternalEObject)newNestedIn).eInverseAdd(this, MappingPackage.MAPPING_HELPER__NESTED, MappingHelper.class, msgs);↵ | | 21 | msgs = ((InternalEObject)newNestedIn).eInverseAdd(this, MappingPackage.MAPPING__NESTED, Mapping.class, msgs);↵
|
22 | msgs = basicSetNestedIn(newNestedIn, msgs);↵ | | 22 | msgs = basicSetNestedIn(newNestedIn, msgs);↵
|
23 | if (msgs != null) msgs.dispatch();↵ | | 23 | if (msgs != null) msgs.dispatch();↵
|
24 | }↵ | | 24 | }↵
|
25 | else if (eNotificationRequired())↵ | | 25 | else if (eNotificationRequired())↵
|
26 | eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.MAPPING_HELPER__NESTED_IN, newNestedIn, newNestedIn)); | | 26 | eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.MAPPING__NESTED_IN, newNestedIn, newNestedIn));
|