blob: 43b5c1d7be4a5070332620c58f9828361891489b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
/**
* Copyright (c) 2012, 2014 Mia-Software, CEA, and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Nicolas Bros (Mia-Software) - Bug 379683 - customizable Tree content provider
* Gregoire Dupe (Mia-Software) - Bug 386387 - [CustomizedTreeContentProvider] The TreeElements are not preserved between two calls to getElements()
* Christian W. Damus (CEA) - bug 434133
*/
package org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.impl;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.EObjectTreeElement;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.EReferenceTreeElement;
import org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.TreeElement;
/**
* An implementation of the model object '<em><b>EReference Tree Element</b></em>'.
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.papyrus.emf.facet.custom.metamodel.v0_2_0.internal.treeproxy.impl.EReferenceTreeElementImpl#getEReference <em>EReference
* </em>}</li>
* </ul>
* </p>
*
*/
public class EReferenceTreeElementImpl extends EStructuralFeatureTreeElementImpl implements EReferenceTreeElement {
/**
* The cached value of the '{@link #getEReference() <em>EReference</em>}' reference.
*
* @see #getEReference()
*/
protected EReference eReference;
protected EReferenceTreeElementImpl() {
super();
}
public EReference getEReference() {
return eReference;
}
public void setEReference(EReference newEReference) {
eReference = newEReference;
}
@Override
public EObjectTreeElement getParent() {
return (EObjectTreeElement)super.getParent();
}
public void setParent(EObjectTreeElement parent) {
super.setParent(parent);
}
@Override
protected EStructuralFeature getEStructuralFeature() {
return getEReference();
}
} //EReferenceTreeElementImpl
|