Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Custom extensions when using EcoreGeneratorFragment?
Custom extensions when using EcoreGeneratorFragment? [message #900518] Tue, 07 August 2012 11:25 Go to next message
Bastian Mueller is currently offline Bastian MuellerFriend
Messages: 4
Registered: March 2012
Junior Member
I'd like to extend the generated metamodel of an Xtext grammar with methods.

I followed the blog post on Christian Dietrich's Blog (the forum doesn't allow me to post non-eclipse.org links, sorry) and implemented a post processor as proposed.

The first comment also notes it is possible to extend a manually maintained model by specifying the srcPath in the EcoreGenerator component.

Is there any way to add custom extensions when inferring/generating the metamodel from the grammar (using EcoreGeneratorFragment) in Xtext?

Thanks
Re: Custom extensions when using EcoreGeneratorFragment? [message #900865 is a reply to message #900518] Wed, 08 August 2012 18:21 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13367
Registered: July 2009
Senior Member
Hi,

there is no out of the box functionality for that you would have to patch parts from
org.eclipse.emf.mwe2.ecore.EcoreGenerator into org.eclipse.xtext.generator.ecore.EcoreGeneratorFragment

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:test error with xtend
Next Topic:How to resolve ambiguity with label syntax
Goto Forum:
  


Current Time: Thu Feb 27 03:06:02 GMT 2020

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

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

Back to the top