Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » About code generation
About code generation [message #208941] Fri, 17 October 2008 11:45 Go to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 266
Registered: July 2009
Location: Paris Saclay, France
Senior Member
Hi,

In my mapping model, I can create a element A into the diagram or into a
compartment of another element.
To do that, I use "referenced child" field of "child reference".

At the generation I have for example an AeditPart and an A2Editpart, I
obtain a duplication of code.
It is normal. How can we avoid this duplication in order to descrease
the size of generated code line.

thanks,
Patrick,
Re: About code generation [message #208953 is a reply to message #208941] Fri, 17 October 2008 12:46 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Patrick,

There is no leagal way to do it now.
Nevertheless you can patch .gmfgen model - just modify "EditPartClassName"
property to point to the same сlass file and you'll have same EditPart class
used by two diferent diagram nodes.
Finally I have to highlight the fact that in this case GMF will just generate
selected class file two times - first generated class content will be replaced
by second one, so you should be shure they are identical..

-----------------
Alex Shatalin
Re: About code generation [message #208960 is a reply to message #208953] Fri, 17 October 2008 13:41 Go to previous messageGo to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 266
Registered: July 2009
Location: Paris Saclay, France
Senior Member
Thank for your reponse.

Have you plan to do that in future version of gmf?

Patrick
"Alex Shatalin" <vano@borland.com> a
Re: About code generation [message #208968 is a reply to message #208960] Fri, 17 October 2008 14:54 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Patrick,

> Have you plan to do that in future version of gmf?
No concrete plans in this area.

-----------------
Alex Shatalin
Previous Topic:how to add scroll bar to variable label
Next Topic:Use Textwrap in Autosize
Goto Forum:
  


Current Time: Wed Jan 20 20:46:16 GMT 2021

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

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

Back to the top