Xtext/xtend generating an intf for type [message #843390] |
Fri, 13 April 2012 02:13 |
Mike Klein Messages: 4 Registered: April 2012 |
Junior Member |
|
|
I am using Indigo w/xtext&xtend 2.2.1, xbase and mwe2 to develop a dsl.
I am struggling with ability to have xtend code generate an additional interface file.
I have tried creating additional xtend files along with a specific mwe2 file but closest I get is code generation of files way other than my model and it gets done at typedef time rather than when in launched eclipse rt when plugin is installed and operational.
I am also curious if there is a way in which the intf/impl and other xtend templates from eclipse plugin can be actually exposed to the user in resulting project so they could be tweaked by advanced users.
I read on this site "Xtend just does classes and nothing else"...does this mean I must use Xpand or Jet for my intf definitions generated from dsl?
Thanks in advance...mike.
[Updated on: Fri, 13 April 2012 03:16] Report message to a moderator
|
|
|
|
|
|
Re: Xtext/xtend generating an intf for type [message #845112 is a reply to message #844732] |
Sat, 14 April 2012 19:11 |
Mike Klein Messages: 4 Registered: April 2012 |
Junior Member |
|
|
As I am unsure how to modify my mwe2 to produce/codegen a 2nd file for intf I am unsure of good this would do.
I'm assuming my question is posed correctly...if I'm modeling entities I would think more than 1:1 entity->classImpl mapping w/be required by many folks. I may want to generate additional files for intfs, data adapters, event handling, etc.
I am looking how/where to hookup a 2nd xtend file (if I understand xtend cg correctly) to produce this 2nd intf file when plugin gets installed/run. Right now only an impl gets generated.
So my type I've defined is foo with a property bar::string I would expect impl w/attr and getter/setter (already provided via xtext/xtend) and a 2nd file for the methods only.
[Updated on: Sat, 14 April 2012 19:12] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04344 seconds