Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Pass strings from mwe2 workflow to an xtend generator
Pass strings from mwe2 workflow to an xtend generator [message #1716102] Tue, 01 December 2015 10:22 Go to next message
Matteo Lo is currently offline Matteo LoFriend
Messages: 3
Registered: November 2015
Junior Member
I was wondering if there is a way to pass a string from the workflow to the generator (a org.eclipse.xtext.generator.GeneratorComponent component in the mwe2).

Let's say that I want to pass the name of a c++ "namespace" to the generator.
How I can do that?

[Updated on: Tue, 01 December 2015 10:26]

Report message to a moderator

Re: Pass strings from mwe2 workflow to an xtend generator [message #1716131 is a reply to message #1716102] Tue, 01 December 2015 15:15 Go to previous message
Uli Merkel is currently offline Uli MerkelFriend
Messages: 250
Registered: June 2013
Senior Member
wouldn't it be easier to provide some "generator_properties" in your grammar and evaluate them during the generation?

AFAIK, the generator is created only once, so your namespave will become a constant.
Previous Topic:Performance question
Next Topic:problems with http://download.itemis.com/updates/
Goto Forum:
  


Current Time: Thu Apr 25 19:02:43 GMT 2024

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

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

Back to the top