Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Generate Model Artifacts Programatically
icon5.gif  Generate Model Artifacts Programatically [message #760510] Fri, 02 December 2011 16:13 Go to next message
zaouad is currently offline zaouadFriend
Messages: 1
Registered: December 2011
Junior Member
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 16:37 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
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: Sat Apr 20 03:20:42 GMT 2024

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

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

Back to the top