diff options
Diffstat (limited to 'org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ParameterImpl.java')
-rw-r--r-- | org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ParameterImpl.java | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ParameterImpl.java b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ParameterImpl.java index cfbf25b0..06eea3f3 100644 --- a/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ParameterImpl.java +++ b/org.eclipse.viatra.solver.language.parent/org.eclipse.viatra.solver.language.model/src/main/emf-gen/org/eclipse/viatra/solver/language/model/problem/impl/ParameterImpl.java | |||
@@ -8,10 +8,9 @@ import org.eclipse.emf.ecore.EClass; | |||
8 | import org.eclipse.emf.ecore.InternalEObject; | 8 | import org.eclipse.emf.ecore.InternalEObject; |
9 | 9 | ||
10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | 10 | import org.eclipse.emf.ecore.impl.ENotificationImpl; |
11 | |||
12 | import org.eclipse.viatra.solver.language.model.problem.ClassDeclaration; | ||
13 | import org.eclipse.viatra.solver.language.model.problem.Parameter; | 11 | import org.eclipse.viatra.solver.language.model.problem.Parameter; |
14 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; | 12 | import org.eclipse.viatra.solver.language.model.problem.ProblemPackage; |
13 | import org.eclipse.viatra.solver.language.model.problem.Relation; | ||
15 | 14 | ||
16 | /** | 15 | /** |
17 | * <!-- begin-user-doc --> | 16 | * <!-- begin-user-doc --> |
@@ -35,7 +34,7 @@ public class ParameterImpl extends VariableImpl implements Parameter { | |||
35 | * @generated | 34 | * @generated |
36 | * @ordered | 35 | * @ordered |
37 | */ | 36 | */ |
38 | protected ClassDeclaration parameterType; | 37 | protected Relation parameterType; |
39 | 38 | ||
40 | /** | 39 | /** |
41 | * <!-- begin-user-doc --> | 40 | * <!-- begin-user-doc --> |
@@ -61,10 +60,10 @@ public class ParameterImpl extends VariableImpl implements Parameter { | |||
61 | * <!-- end-user-doc --> | 60 | * <!-- end-user-doc --> |
62 | * @generated | 61 | * @generated |
63 | */ | 62 | */ |
64 | public ClassDeclaration getParameterType() { | 63 | public Relation getParameterType() { |
65 | if (parameterType != null && parameterType.eIsProxy()) { | 64 | if (parameterType != null && parameterType.eIsProxy()) { |
66 | InternalEObject oldParameterType = (InternalEObject) parameterType; | 65 | InternalEObject oldParameterType = (InternalEObject) parameterType; |
67 | parameterType = (ClassDeclaration) eResolveProxy(oldParameterType); | 66 | parameterType = (Relation) eResolveProxy(oldParameterType); |
68 | if (parameterType != oldParameterType) { | 67 | if (parameterType != oldParameterType) { |
69 | if (eNotificationRequired()) | 68 | if (eNotificationRequired()) |
70 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.PARAMETER__PARAMETER_TYPE, | 69 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ProblemPackage.PARAMETER__PARAMETER_TYPE, |
@@ -79,7 +78,7 @@ public class ParameterImpl extends VariableImpl implements Parameter { | |||
79 | * <!-- end-user-doc --> | 78 | * <!-- end-user-doc --> |
80 | * @generated | 79 | * @generated |
81 | */ | 80 | */ |
82 | public ClassDeclaration basicGetParameterType() { | 81 | public Relation basicGetParameterType() { |
83 | return parameterType; | 82 | return parameterType; |
84 | } | 83 | } |
85 | 84 | ||
@@ -88,8 +87,8 @@ public class ParameterImpl extends VariableImpl implements Parameter { | |||
88 | * <!-- end-user-doc --> | 87 | * <!-- end-user-doc --> |
89 | * @generated | 88 | * @generated |
90 | */ | 89 | */ |
91 | public void setParameterType(ClassDeclaration newParameterType) { | 90 | public void setParameterType(Relation newParameterType) { |
92 | ClassDeclaration oldParameterType = parameterType; | 91 | Relation oldParameterType = parameterType; |
93 | parameterType = newParameterType; | 92 | parameterType = newParameterType; |
94 | if (eNotificationRequired()) | 93 | if (eNotificationRequired()) |
95 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.PARAMETER__PARAMETER_TYPE, | 94 | eNotify(new ENotificationImpl(this, Notification.SET, ProblemPackage.PARAMETER__PARAMETER_TYPE, |
@@ -121,7 +120,7 @@ public class ParameterImpl extends VariableImpl implements Parameter { | |||
121 | public void eSet(int featureID, Object newValue) { | 120 | public void eSet(int featureID, Object newValue) { |
122 | switch (featureID) { | 121 | switch (featureID) { |
123 | case ProblemPackage.PARAMETER__PARAMETER_TYPE: | 122 | case ProblemPackage.PARAMETER__PARAMETER_TYPE: |
124 | setParameterType((ClassDeclaration) newValue); | 123 | setParameterType((Relation) newValue); |
125 | return; | 124 | return; |
126 | } | 125 | } |
127 | super.eSet(featureID, newValue); | 126 | super.eSet(featureID, newValue); |
@@ -136,7 +135,7 @@ public class ParameterImpl extends VariableImpl implements Parameter { | |||
136 | public void eUnset(int featureID) { | 135 | public void eUnset(int featureID) { |
137 | switch (featureID) { | 136 | switch (featureID) { |
138 | case ProblemPackage.PARAMETER__PARAMETER_TYPE: | 137 | case ProblemPackage.PARAMETER__PARAMETER_TYPE: |
139 | setParameterType((ClassDeclaration) null); | 138 | setParameterType((Relation) null); |
140 | return; | 139 | return; |
141 | } | 140 | } |
142 | super.eUnset(featureID); | 141 | super.eUnset(featureID); |