Browse Source

return getOwningType for getType

Andreas Muelder 9 years ago
parent
commit
5f29f4bd13

+ 6 - 0
plugins/org.yakindu.base.types/src-gen/org/yakindu/base/types/impl/EnumeratorImpl.java

@@ -10,6 +10,7 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
 import org.eclipse.emf.ecore.util.EcoreUtil;
 import org.yakindu.base.types.EnumerationType;
 import org.yakindu.base.types.Enumerator;
+import org.yakindu.base.types.Type;
 import org.yakindu.base.types.TypesPackage;
 
 /**
@@ -44,6 +45,11 @@ public class EnumeratorImpl extends DeclarationImpl implements Enumerator {
 	protected EnumeratorImpl() {
 		super();
 	}
+	
+	@Override
+	public Type getType() {
+		return getOwningEnumeration();
+	}
 
 	/**
 	 * <!-- begin-user-doc -->