Getting Mapped Model [message #89935] |
Fri, 05 January 2007 18:01  |
Eclipse User |
|
|
|
Originally posted by: irbull.cs.uvic.ca
I am trying to write my own "tool" with GMF that affects elements in my
EMF model. I have created a Generic Tool, and set the class to a
subclass of a GEF tool. Now this works well, and I get the proper GEF
requests, etc...
Now when I button is pressed I need to get the EMF model element mapped
to that editpart. The edit part is correct, but getModel() returns a
NodeImpl (an GMF class) not the EMF model element I have mapped to this
edit part. Is there a way to get the EMF model element that was mapped
to a particular edit part? There must be a way since GMF is doing it
all over the place.
cheers,
ian
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04076 seconds