Skip to main content

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

Can you please post this to the GMF newsgroup?  It's the best place for
these types of questions, and others may benefit from the response.  This
mailing list is for developer discussions.

Thanks,
Rich


On 10/23/07 5:07 PM, "krishnan" <naveneetha@xxxxxxxxx> wrote:

> 
> 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

-- 
Richard C. Gronback
Borland Software Corporation
richard.gronback@xxxxxxxxxxx
+1 860 227 9215



Back to the top