0

I use Xtext framwork for my DSL and I want to generate code by a toolbar bottom. I get the file selected from workbench but how can I call Xtend generator? I don't know how I can get the resource param for doGenerate.

andrex_jux
  • 25
  • 1
  • 5

1 Answers1

0

Although the question was a bit different, my answer holds here as well: How to invoke Xtext parser/JvmModelInferrer from a Java project

Basically, use the injector Xtext generates and get the IGenerator instance.

Community
  • 1
  • 1
Zoltán Ujhelyi
  • 13,788
  • 2
  • 32
  • 37