Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Change Code generation(Can return the setter this?)
Change Code generation [message #629873] Wed, 29 September 2010 19:46 Go to next message
Waldi  is currently offline Waldi Friend
Messages: 60
Registered: July 2009
Member
Hi,

some days ago I read about the fluent interface pattern. It is possible to generate such setters with emf? 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 Wink Im lazy

Bye Waldi
Re: Change Code generation [message #629880 is a reply to message #629873] Wed, 29 September 2010 19:55 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30550
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
Previous Topic:[EMF] FeatureMap with EOpposites
Next Topic:RCP & EMF Compare
Goto Forum:
  


Current Time: Thu Oct 17 01:02:07 GMT 2019

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

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

Back to the top