lesson learned when using an imported model in xtext [message #501297] |
Tue, 01 December 2009 19:11 |
Henrik Lindberg Messages: 2509 Registered: July 2009 |
Senior Member |
|
|
When using an imported grammar as opposed to a generated grammar - these
two declarations needs to be updated in the mwe configuration:
This is needed so xtext finds the information about the implementation:
<fragment class="org.eclipse.xtext.generator.ecore.EcoreGeneratorFragment "
genModels="platform:/resource/com.myproject/model/mymodel.genmodel "/>
And this is for the generator - (and here is a gotcha) the
registerGeneratedEPackage should use the ID found in the extension point
data....
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup"
platformUri="${runtimeProject}/.."
registerGeneratedEPackage="com.myproject.MyPackageImpl"/>
The b3 mwe now has the correct configuration.
- henrik
|
|
|
Powered by
FUDForum. Page generated in 0.03817 seconds