|
Re: Change Code generation [message #629880 is a reply to message #629873] |
Wed, 29 September 2010 19:55 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
Valdi,
Comments below.
Waldi wrote:
> Hi,
>
> some days ago I read about the fluent interface pattern. It is
> possible to generate such setters with emf?
Not with the default templates.
> I read in the EMF book, in the newsgroup... google. No success.
>
> I think: Yes I can model it by hand... create a method called
> #setName(String name) and return this but my fingers getting wound ;)
> Im lazy
You could use dynamic templates (see FAQ) and modify the Class.javajet's
generation for the setters.
>
> Bye Waldi
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03180 seconds