[XPand2] Unknown type 'ecore::EClass' [message #662869] |
Fri, 01 April 2011 06:14  |
Eclipse User |
|
|
|
I'd like to transform EMF models to text. The special thing about my meta-model is that it contains references to the Ecore meta-model itself. Hence, it is not only an instance of Ecore, but in addition, has references to parts of Ecore. More precisely, an EClass in my meta-model has a reference to EClassifier.
Within my XPand template, I want to access the EClassifier via the respective reference from my meta-model. Since I am only interested in EClasses among the EClassifiers, I perform the appropriate typeSelect.
I have ne errors marked in the template, but on execution I get the following error message: Unknown type 'ecore::EClass'
This is a simplified version of my template. "Base" is an EClass of my meta-model which indirectly references "EClassifier".
«IMPORT xyz»
«DEFINE main FOR Base»
«EXPAND sub FOREACH this.baseref.ref.typeSelect(ecore::EClass)»
«ENDDEFINE»
«DEFINE sub FOR ecore::EClass»
«this.name»
«ENDDEFINE»
Can anyone imagine the problem? Can I solve the issue on the XPand site?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03340 seconds