Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization.properties.generation/transforms/profile2datacontext.qvto13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/transforms/profile2datacontext.qvto b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/transforms/profile2datacontext.qvto
index 8e59878af64..d1a1552c36e 100644
--- a/plugins/customization/org.eclipse.papyrus.customization.properties.generation/transforms/profile2datacontext.qvto
+++ b/plugins/customization/org.eclipse.papyrus.customization.properties.generation/transforms/profile2datacontext.qvto
@@ -107,15 +107,14 @@ abstract mapping Classifier::toAbstractDCElement() : element : DataContextElemen
mapping Stereotype::toDataContextElement() : element : DataContextElement, viewSingle : View, viewMultiple : View inherits Classifier::toAbstractDCElement{
element.properties := self.attribute->select(e | e.isAttribute(self)).map toProperty();
+
+ //Stereotype generalization
var superClassifiers := self.generalization.target->select(e | e.isView()).oclAsType(Classifier);
- var tempAtt := self.ownedAttribute->select(e | not e.isAttribute(self)).getDataContextElement()->asSet();
- if not superClassifiers->isEmpty() then
-
- element.supertypes := self.generalization.target->select(e | e.isView()).oclAsType(Classifier).late resolve(DataContextElement)
- else
- element.supertypes := superClassifiers.map toDCElement().element->union(tempAtt)->asSet()
- endif;
+ //base metaclasses
+ var baseElements := self.ownedAttribute->select(e | not e.isAttribute(self)).getDataContextElement()->asSet();
+
+ element.supertypes := superClassifiers.map toDCElement().element->union(baseElements)->asSet()
}
mapping DataType::toDataContextElement() : element : DataContextElement, viewSingle : View, viewMultiple : View inherits Classifier::toAbstractDCElement when {

Back to the top