Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Harvesting data from multiple DSL files
Harvesting data from multiple DSL files [message #790019] Fri, 03 February 2012 18:05 Go to next message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
Hi,
I have several (potentially many) similar looking small DSL files.
I do generate some files for each of those.
So far nothing strange, but I should also generate a couple of files
based on *all* the DSL files, something akin to linking multiple source
files.
I know I could generate some information file specific to the single
source and then use some special-purpose program to collect the info,
but I would like to know if xtend does, somehow, already handle this.

TiA
Mauro
Re: Harvesting data from multiple DSL files [message #790170 is a reply to message #790019] Fri, 03 February 2012 22:44 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

Xtend has no out of the box solution for that but you may find a suitable solution is this blog post from Karsten
http://kthoms.wordpress.com/2011/07/12/xtend-generating-from-multiple-input-models/

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Harvesting data from multiple DSL files [message #790551 is a reply to message #790170] Sat, 04 February 2012 12:42 Go to previous messageGo to next message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
Thanks for the hint.
Unfortunately I seem unable to make it work.
I am currently stuck because if I put IMultipleResourceGenerator.java and MultipleResourceBuilderPartecipant.java domewhere in my .ui plugin I cannot access it from my XxxGenerator.xtend beacuse this would create a plugin dependency loop; if i put it into the base plugin it complains about dependencies to org.eclipse.core...

What am I doing wrong?
Problem is I don't currently really understand how this all is built and supposed to work.

Could You (or some other kind soul) tell me exactly which packages I should create and where to put the various bits?

Thanks in Advance
Mauro
Re: Harvesting data from multiple DSL files [message #790625 is a reply to message #790551] Sat, 04 February 2012 15:34 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
IGenerator2 => Runtime Plugin
JavaProjectBasedBuilderParticipant2 => UI Plugin


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Harvesting data from multiple DSL files [message #791275 is a reply to message #790625] Sun, 05 February 2012 15:14 Go to previous message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
Thanks.
It works now.
I was also able to merge the original blogger mods with the XText_2.2.x recommendations in the feature request.
Now I will need to do some tries about my extended generator (what works now is really rtivial); hopefully I should have all info I need.
If You think it may be useful I can write a small tutorial detailing what I did.

Thanks
Mauro
Previous Topic:Comma Separated List
Next Topic:Best practice with this xtend function?
Goto Forum:
  


Current Time: Fri Mar 29 14:14:40 GMT 2024

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

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

Back to the top