Currently I'm modifying a project that uses xText to parse a custom DSL. I want to add functionality to the generated classes but unfortunately I failed implementing the generation gap pattern. I used this article as a basis:
http://heikobehrens.net/2009/04/23/generation-gap-pattern/
My problem is that we're using a lot of Fragments to customize the org.eclipse.xtext.generator.Generator. It seems I cannot reuse those fragments for org.eclipse.xpand2.Generator.
So in conclusion:
- how can I implement the generation gap pattern for the xtext generator
- OR how can I use Fragments with the xpand2-Generator
- OR is there a third solution that allows me to use fragments and implement the generation gap pattern?
After researching the matter, I'm thoroughly confused.