Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Getting EObject id
Getting EObject id [message #122996] Mon, 30 April 2007 14:14 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:using Simple Graphical Definition Model wizard
Next Topic:Multiple Models on one screen
Goto Forum:
  


Current Time: Sat May 10 18:28:23 EDT 2025

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

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

Back to the top