Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » B3 » lesson learned when using an imported model in xtext
lesson learned when using an imported model in xtext [message #501297] Tue, 01 December 2009 19:11
Henrik Lindberg is currently offline Henrik LindbergFriend
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
Previous Topic:Lots of progress made on backend and grammar ... but....
Next Topic:lesson learned when using an imported model in xtext
Goto Forum:
  


Current Time: Tue Sep 24 11:40:54 GMT 2024

Powered by FUDForum. Page generated in 0.03817 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top