Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Migrating to GMF 2.0 and code generation problem
Migrating to GMF 2.0 and code generation problem [message #146523] Tue, 14 August 2007 09:30 Go to next message
Eclipse UserFriend
After migrating to GMF 2.0, the generated code for the figures of my
ConnectionNodeEditPart does not generate correct code for the specified
child figures. So, for example, the generated code pattern looks like
this: a subclass of ConnectionNodeEditPart with a subclass of
LabelEditPart as its child, has a subclass of PolylineConnectionEx as its
figure, which in turn has a member variable to the WrapLabel child figure
to use for the LabelEditPart.

The problem is that the PolylineConnectionEx figure does not instantiate
the WrapLabel figure at all (it doesn't even have a createContent()
function).

In the older version of the generated code, a LabelEditPart that is a
child for a ConnectionNodeEditPart instantiates its own WrapLabel figure
in the createFigure/Prim() function.

So my questions is this, after migrating the map/graph files to GMF 2.0,
do I have to edit them manually to get this working, and if so, how?
Re: Migrating to GMF 2.0 and code generation problem [message #146608 is a reply to message #146523] Wed, 15 August 2007 07:43 Go to previous message
Eclipse UserFriend
Hello Yasser,

Looks like a problem of new figure generation templates. Can you please file
a request for it?

for now I suggest you to modify generated code by hands.

-----------------
Alex Shatalin
Previous Topic:Change the relation source & target point
Next Topic:Re: 3 classes in model extend EObject - one of them causes crash - related to enum problem ?!
Goto Forum:
  


Current Time: Thu May 08 08:13:19 EDT 2025

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

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

Back to the top