Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlorenzo2011-03-02 13:01:48 +0000
committervlorenzo2011-03-02 13:01:48 +0000
commit7c488bdc2c097c6eb8f97efc4f506b0e37a6d33b (patch)
tree1abbc5dc425d365c276b215bed8234d876e82593 /plugins/core/org.eclipse.papyrus.properties.generation/transforms/ecore2datacontext.qvto
parent9ff6ac49f82704998a317f4048ee92b9a3f6b8e3 (diff)
downloadorg.eclipse.papyrus-7c488bdc2c097c6eb8f97efc4f506b0e37a6d33b.tar.gz
org.eclipse.papyrus-7c488bdc2c097c6eb8f97efc4f506b0e37a6d33b.tar.xz
org.eclipse.papyrus-7c488bdc2c097c6eb8f97efc4f506b0e37a6d33b.zip
ASSIGNED - bug 335332: [Property View] Papyrus shall provide an extensible property view runtime
https://bugs.eclipse.org/bugs/show_bug.cgi?id=335332
Diffstat (limited to 'plugins/core/org.eclipse.papyrus.properties.generation/transforms/ecore2datacontext.qvto')
-rw-r--r--plugins/core/org.eclipse.papyrus.properties.generation/transforms/ecore2datacontext.qvto4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/core/org.eclipse.papyrus.properties.generation/transforms/ecore2datacontext.qvto b/plugins/core/org.eclipse.papyrus.properties.generation/transforms/ecore2datacontext.qvto
index 87477d53c4b..5fe3d6efee4 100644
--- a/plugins/core/org.eclipse.papyrus.properties.generation/transforms/ecore2datacontext.qvto
+++ b/plugins/core/org.eclipse.papyrus.properties.generation/transforms/ecore2datacontext.qvto
@@ -1,7 +1,7 @@
modeltype Ecore uses "http://www.eclipse.org/emf/2002/Ecore";
modeltype PropertyContext uses "http://www.eclipse.org/papyrus/properties/contexts";
modeltype PropertyEnvironment uses "http://www.eclipse.org/papyrus/properties/environment";
-modeltype PRoot uses "http://www.eclipse.org/papryus/properties/root";
+modeltype PRoot uses "http://www.eclipse.org/papyrus/properties/root";
transformation ecore2datacontext(in ecore : Ecore, in pRoot : PRoot, out context : PropertyContext);
@@ -54,7 +54,7 @@ abstract mapping EClassifier::toDataContextElement() : element : DataContextElem
mapping EClass::toDataContextElement() : element : DataContextElement, viewSingle : View, viewMultiple : View inherits EClassifier::toDataContextElement{
element.properties := self.eStructuralFeatures->map toProperty();
- element.supertypes := self.eSuperTypes->map toDataContextElement().element;
+ element.supertypes := self.eSuperTypes->select(e | not e.oclIsKindOf(Ecore::EModelElement))->map toDataContextElement().element;
viewSingle.name := 'Single '+self.name;
viewSingle.automaticContext := true;

Back to the top