Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Using multiple OutputConfigurations with an JvmModelInferrer
Using multiple OutputConfigurations with an JvmModelInferrer [message #928660] Sun, 30 September 2012 21:37 Go to next message
Boris Brodski is currently offline Boris Brodski
Messages: 85
Registered: July 2009
Member
Hello,


I would like to have multiple outlets (IOutputConfiguration) and choose, which classes goes in which outlet. This was possible with the IGenerator approach, but seams to be complicated with the new JvmModelInferrer approach.

Use case example:

Generation of abstract classes is more user friendly, if the standard implementations are also generated but only once. (Output directory: "src", override: false)

Thank you!
Re: Using multiple OutputConfigurations with an JvmModelInferrer [message #929494 is a reply to message #928660] Mon, 01 October 2012 13:56 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian Zarnekow
Messages: 2829
Registered: July 2009
Senior Member
Hi Boris,

I'd put an eAdapter into the inferred type to indicate the output config
and read that one from a subclassed JvmModelGenerator in order to direct
the file into the right directory.

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 30.09.12 14:37, schrieb Boris Brodski:
> Hello,
>
>
> I would like to have multiple outlets (IOutputConfiguration) and choose,
> which classes goes in which outlet. This was possible with the
> IGenerator approach, but seams to be complicated with the new
> JvmModelInferrer approach.
>
> Use case example:
>
> Generation of abstract classes is more user friendly, if the standard
> implementations are also generated but only once. (Output directory:
> "src", override: false)
>
> Thank you!
Re: Using multiple OutputConfigurations with an JvmModelInferrer [message #929549 is a reply to message #928660] Mon, 01 October 2012 14:58 Go to previous messageGo to next message
Boris Brodski is currently offline Boris Brodski
Messages: 85
Registered: July 2009
Member
Hello Sebastian,


thank you, I will try it out.
Re: Using multiple OutputConfigurations with an JvmModelInferrer [message #1008183 is a reply to message #929549] Mon, 11 February 2013 10:26 Go to previous message
Boris Brodski is currently offline Boris Brodski
Messages: 85
Registered: July 2009
Member
Hello,


it worked! Thank you very much for help.

And here is the new screen cast: http://xtextcasts.org/episodes/16-output-configurations-with-xbase Smile


Regards,
Boris
Previous Topic:Xtext/Xtend is not resolving binary operations properly
Next Topic:xtend-maven-plugin has no outputs
Goto Forum:
  


Current Time: Tue Sep 16 17:38:28 GMT 2014

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

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