Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Getting EMF model out of EditPart
Getting EMF model out of EditPart [message #152524] Fri, 28 September 2007 08:21 Go to next message
Eclipse UserFriend
Originally posted by: avikram.novell.com

Hi,

How to get the model out of the EditPart, EditPart.getModel() returns me
the DiagramImpl not the Impl representing the EditPart.

What should I do to get this or can I get all the attributes for any model
from the EditPart itself?

Thanks in advance,
Aditya
Re: Getting EMF model out of EditPart [message #152534 is a reply to message #152524] Fri, 28 September 2007 08:58 Go to previous messageGo to next message
Eclipse UserFriend
Hello aditya,

call ((View) EditPart.getModel()).getElement().

-----------------
Alex Shatalin
Re: Getting EMF model out of EditPart [message #152686 is a reply to message #152534] Mon, 01 October 2007 01:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: avikram.novell.com

Alex Shatalin wrote:

> call ((View) EditPart.getModel()).getElement().
>
Thanks a lot Alex, it worked just as you suggested.
Re: Getting EMF model out of EditPart [message #153030 is a reply to message #152534] Tue, 02 October 2007 10:53 Go to previous message
Eclipse UserFriend
Alex Shatalin escribió:
> Hello aditya,
>
> call ((View) EditPart.getModel()).getElement().
>
> -----------------
> Alex Shatalin
>
>

And if you have an instance of IGraphicalEditPart you can use
IGraphicalEditPart#resolveSemanticElement().
Previous Topic:need guidance
Next Topic:Affixed parent side - non-movable
Goto Forum:
  


Current Time: Sat Jul 19 19:06:11 EDT 2025

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

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

Back to the top