Getting EObject id [message #122996] |
Mon, 30 April 2007 14:14  |
Eclipse User |
|
|
|
Originally posted by: gritgop.pisem.net
Hi, I have added a popup menu to my GMF application, what I need to do
is obtain the unique identifiers for the selected objects used by the
EMF underneath the GMF layer. Right now I have access to the figure used
to draw the ECore object, but I need to obtain the ecore instance
represented by that figure, and more precisely a way to identify that
figure (so I can save this information to disk and rever it later)
Thanks.
|
|
|
Re: Getting EObject id [message #123054 is a reply to message #122996] |
Tue, 01 May 2007 04:37  |
Eclipse User |
|
|
|
Originally posted by: 5d5.mail.ru
Actually you need an editpart - it's available as diagram editor
selection; after that call IGraphicalEditPart.resolveSemanticElement().
exquisitus wrote:
> Hi, I have added a popup menu to my GMF application, what I need to do
> is obtain the unique identifiers for the selected objects used by the
> EMF underneath the GMF layer. Right now I have access to the figure used
> to draw the ECore object, but I need to obtain the ecore instance
> represented by that figure, and more precisely a way to identify that
> figure (so I can save this information to disk and rever it later)
>
> Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.02969 seconds