Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Generate Model Artifacts Programatically
icon5.gif  Generate Model Artifacts Programatically [message #760510] Fri, 02 December 2011 11:13 Go to next message
Eclipse UserFriend
Is there a way to programatically trigger the artifact generation using xtext, i.e, without being in the ide?

We're talking here about something like:

XTextGenerator gen = new ...
gen.generateArtifacts("my-grammar.xtext")

Context:
What we have is a lot of UI screen models.
We need to introspect them and generate an xtext grammar programatically.
Then using the generated grammar be able to generate artifacts dynamically.
For this we need to run the XText generate by code.
Re: Generate Model Artifacts Programatically [message #760517 is a reply to message #760510] Fri, 02 December 2011 11:37 Go to previous message
Eclipse UserFriend
On 2011-02-12 17:13, zaouad wrote:
> Is there a way to programatically trigger the artifact generation using
> xtext, i.e, without being in the ide?
>
> We're talking here about something like:
>
> XTextGenerator gen = new ...
> gen.generateArtifacts("my-grammar.xtext")
>
> Context:
> What we have is a lot of UI screen models. We need to introspect them
> and generate an xtext grammar programatically.
> Then using the generated grammar be able to generate artifacts dynamically.
> For this we need to run the XText generate by code.

It is possible to execute the mwe workflows programatically.
I have looked at code for that, but I am afraid I don't remember exactly
where (perhaps mwe itself)... try searching for it.

Regards
- henrik
Previous Topic:antlr issue when compiling grammar
Next Topic:Trigger JDT JavaDoc Formatter for Doc-Comments
Goto Forum:
  


Current Time: Fri Jul 04 18:13:43 EDT 2025

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

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

Back to the top