Need help with GMF Feature Label Mapping [message #157042] |
Wed, 24 October 2007 14:46  |
Eclipse User |
|
|
|
Originally posted by: naveneetha.yahoo.com
Hi All,
I am quite new to GMF and I have been trying to play with some of the
examples(mindmap and coffeeshop - onjava.com) on GMF. I have a question
about one of the steps in the GMF cheat sheet - Create a Label Mapping.
The step seems to suggest adding a "Feature Label Mapping" as a child to
the "Top Node Reference". I guess by default, there is no label attached
to your nodes, so this step allows the user to provide appropriate label
to the nodes in your GMF map.
What I have noticed is that if you have a label to any "Top Node
Reference" the code generated using "Create Diagram Code" on gmfgen doesnt
compile.
The is the code which is part of
<...>.diagram.edit.parts.<...EditPart.java> .
I have been using the Coffee Shop example from
http://www.onjava.com/pub/a/onjava/2007/07/11/gmf-beyond-the -wizards.html
and the code in this context is ManagerEditPart.java which seems to refer
to a method which doesnt exist.
My GMF model contains a Manager and a Employee Node and a relation between
them - Manager manages employees.
If i remove the label(that is if the label was generated auto by default),
then the code(Create Diagram code on gmfgen) compiles fine and I can run
the application.
Has anybody seen or noticed this problem? If yes, Can you give me the
solution please?
Here are my Eclipse Details :
Version : 3.3.0
Build Id : I20070625-1500
GMF : 2.0.1 (latest)
Any help would be appreciated.
thanks
krishnan
|
|
|
|
Powered by
FUDForum. Page generated in 0.06434 seconds