Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[gmf-dev] Need help with GMF Feature Label Mapping

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
-- 
View this message in context: http://www.nabble.com/Need-help-with-GMF-Feature-Label-Mapping-tf4670378.html#a13341796
Sent from the Eclipse GMF - Dev mailing list archive at Nabble.com.



Back to the top