Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Need help with GMF Feature Label Mapping
Need help with GMF Feature Label Mapping [message #157042] Wed, 24 October 2007 14:46 Go to next message
Eclipse UserFriend
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
Re: Need help with GMF Feature Label Mapping [message #157121 is a reply to message #157042] Thu, 25 October 2007 11:03 Go to previous message
Eclipse UserFriend
Hello Krishnan,

I suggest you to take an existing example og GMF diagram with labels (mingmap,
or Ecore diagram) and compare it with your sample.

-----------------
Alex Shatalin
Previous Topic:Using custom actions in toolbar
Next Topic:Diagram Label as a source/target of a link?
Goto Forum:
  


Current Time: Fri Apr 18 21:05:27 EDT 2025

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

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

Back to the top