|Mwe2.xtext:15 type reference ecore [message #622980]
||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 ( http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf.mwe/plugins/org.eclipse.emf.mwe2.language/src/o rg/eclipse/emf/mwe2/language/Mwe2.xtext?revision=1.12&ro ot=Modeling_Project&view=markup line 15)
import " platform:/resource/org.eclipse.xtext.common.types/model/Java VMTypes.ecore " as types
'var' (type=[types::JvmType|FQN])? name=FQN ('=' default=Value)?;
I was looking in the http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.tmf/org .eclipse.xtext/plugins/org.eclipse.xtext.common.types/?root= Modeling_Project 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 http://www.eclipse.org/Xtext/documentation/latest/xtext.html #syntax , I modified the mwe2 generator file, but no change.
Thank you for your answers,
Powered by FUDForum
. Page generated in 0.01548 seconds