Migrating to GMF 2.0 and code generation problem [message #146523] |
Tue, 14 August 2007 09:30  |
Eclipse User |
|
|
|
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?
|
|
|
|
Powered by
FUDForum. Page generated in 0.06023 seconds