Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Change generated Code
Change generated Code [message #523112] Thu, 25 March 2010 07:44 Go to next message
Dennis sui is currently offline Dennis suiFriend
Messages: 35
Registered: February 2010
Member
Hi,

i am searching for the best way to change the generated Code instead of just write a NOT after the @generated.

Does anyone know a tool that change the code the way I want ?
Only tool i know is Object Teams.

Re: Change generated Code [message #523185 is a reply to message #523112] Thu, 25 March 2010 13:07 Go to previous messageGo to next message
Enrico Schnepel is currently offline Enrico SchnepelFriend
Messages: 121
Registered: July 2009
Senior Member
I have successfully used AspectJ.

"Sui" <suithedoc@arcor.de> schrieb im Newsbeitrag
news:hof49k$brs$1@build.eclipse.org...
> Hi,
>
> i am searching for the best way to change the generated Code instead of
> just write a NOT after the @generated.
>
> Does anyone know a tool that change the code the way I want ?
> Only tool i know is Object Teams.
>
>
Re: Change generated Code [message #523450 is a reply to message #523112] Fri, 26 March 2010 14:13 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

you must try to use providers when you can.

If you can't, you have two common way:
- modify the template used for generation: I wrotte a blogpost to use that elegantly and in a maintainable way (at least of my POV)
- modify the genreated code behavior by using aspect oriented technolgies (AspectJ ou OT)

Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team

[Updated on: Fri, 26 March 2010 14:15]

Report message to a moderator

Previous Topic:GMF extension point 'org.eclipse.gmf.runtime.common.ui.services.dnd.dragDropListenerProviders'
Next Topic:tracing source/code from model developed in gmf based editor
Goto Forum:
  


Current Time: Tue Mar 19 05:20:35 GMT 2024

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

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

Back to the top