Skip to content

Commit 4ed64f2

Browse files
committed
Fix mising EDatatype ePackage registration
Each generated EDatatype instance was implicitly bound to a container using internal references. This commit introduce a more "official" way of registering them. This modification only impacts users that want to do metamodel reflexive operations.
1 parent 86d5a7c commit 4ed64f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyecoregen/templates/package.py.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ otherClassifiers = [{{ element.eClassifiers | select('kind', ecore.EDataType) |
5353

5454
for classif in otherClassifiers:
5555
eClassifiers[classif.name] = classif
56-
classif._container = {{ element.name }}
56+
classif.ePackage = eClass
5757

5858
for classif in eClassifiers.values():
5959
eClass.eClassifiers.append(classif.eClass)

0 commit comments

Comments
 (0)