Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:30 Go to next message
Yasser Lulu is currently offline Yasser LuluFriend
Messages: 1
Registered: July 2009
Junior Member
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 11:43 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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: Wed Jul 17 15:32:14 GMT 2024

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

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

Back to the top