|Mwe2.xtext:15 type reference ecore [message #537667]
||Thu, 03 June 2010 10:06
Registered: May 2010
I didn't know where to post this message, TMF / EMF or EMFT, so here I am.
I would like to know how the reference to ecore type is done for the xtext gramar (Mwe2.xtext line 15)
import "platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.ecore" as types
'var' (type=[types::JvmType|FQN])? name=FQN ('=' default=Value)?;
I was looking in the org.eclipse.xtext.common.types package, where I found the model, and the Java class.
But I don't get how the link is made between those two plugins, for instance when I try to reuse this simple line, I got an error in generation saying that I should register the package.
The generated EPackage references an external EPackage, but 'referencedGenModels' hasn't been registered.
according to the Xtext doc , I modified the mwe2 generator file, but no change.
Thank you for your answers,
Powered by FUDForum
. Page generated in 0.01599 seconds