1 | @Override↵ | | 1 | @Override↵
|
2 | public InternalEObject eInternalContainer()↵ | | 2 | public InternalEObject eInternalContainer()↵
|
3 | {↵ | | 3 | {↵
|
4 | if (eContainer == EUNINITIALIZED_CONTAINER)↵ | | 4 | if (eContainer == EUNINITIALIZED_CONTAINER)↵
|
5 | {↵ | | 5 | {↵
|
6 | eInitializeContainer();↵ | | 6 | eInitializeContainer();↵
|
7 | }↵ | | 7 | }↵
|
|
8 | return eContainer;↵ | | 8 | return eContainer;↵
|
9 | }↵ | | 9 | }↵
|
|
10 | @Override↵ | | 10 | @Override↵
|
11 | public int eContainerFeatureID()↵ | | 11 | public int eContainerFeatureID()↵
|
12 | {↵ | | 12 | {↵
|
13 | if (eContainer == EUNINITIALIZED_CONTAINER)↵ | | 13 | if (eContainer == EUNINITIALIZED_CONTAINER)↵
|
14 | {↵ | | 14 | {↵
|
15 | eInitializeContainer();↵ | | 15 | eInitializeContainer();↵
|
16 | }↵ | | 16 | }↵
|
|
17 | return eContainerFeatureID;↵ | | 17 | return eContainerFeatureID;↵
|
18 | }↵ | | 18 | }↵
|
|
19 | protected void eInitializeContainer()↵ | | 19 | protected void eInitializeContainer()↵
|
20 | {↵ | | 20 | {↵
|
21 | eContainer = eStore().getContainer(this);↵ | | 21 | eContainer = eStore().getContainer(this);↵
|
22 | if (eContainer != null)↵ | | 22 | if (eContainer != null)↵
|
23 | {↵ | | 23 | {↵
|
24 | EStructuralFeature eContainingFeature = eStore().getContainingFeature(this);↵ | | 24 | EStructuralFeature eContainingFeature = eStore().getContainingFeature(this);↵
|
25 | if (eContainingFeature instanceof EReference)↵ | | 25 | if (eContainingFeature instanceof EReference)↵
|
26 | {↵ | | 26 | {↵
|
27 | EReference eContainingReference = (EReference)eContainingFeature;↵ | | 27 | EReference eContainingReference = (EReference)eContainingFeature;↵
|
28 | EReference eOpposite = eContainingReference.getEOpposite();↵ | | 28 | EReference eOpposite = eContainingReference.getEOpposite();↵
|
29 | if (eOpposite != null)↵ | | 29 | if (eOpposite != null)↵
|
30 | {↵ | | 30 | {↵
|
31 | eContainerFeatureID = eClass().getFeatureID(eOpposite);↵ | | 31 | eContainerFeatureID = eClass().getFeatureID(eOpposite);↵
|
32 | return;↵ | | 32 | return;↵
|
33 | }↵ | | 33 | }↵
|
34 | }↵ | | 34 | }↵
|
|
35 | eContainerFeatureID = EOPPOSITE_FEATURE_BASE - eContainer.eClass().getFeatureID(eContainingFeature);↵ | | 35 | eContainerFeatureID = EOPPOSITE_FEATURE_BASE - eContainer.eClass().getFeatureID(eContainingFeature);↵
|
36 | }↵ | | 36 | }↵
|
37 | }↵ | | 37 | }↵
|
|
38 | @Override↵ | | 38 | @Override↵
|
39 | public InternalEObject.EStore eStore()↵ | | 39 | public InternalEObject.EStore eStore()↵
|
40 | {↵ | | 40 | {↵
|
41 | return eStore;↵ | | 41 | return eStore;↵
|
42 | }↵ | | 42 | }↵
|
|
43 | @Override↵ | | 43 | @Override↵
|
44 | public void eSetStore(InternalEObject.EStore store)↵ | | 44 | public void eSetStore(InternalEObject.EStore store)↵
|
45 | {↵ | | 45 | {↵
|
46 | this.eStore = store; | | 46 | this.eStore = store;
|