Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to get the EditPart from its model
How to get the EditPart from its model [message #227480] Mon, 27 April 2009 03:35 Go to next message
Eclipse UserFriend
Originally posted by:

Hi all,

I want to know if I can get the EditPart when I have
the handler of a model's instance.

In the EditPart class, using this:

EObject object =

and the "object" will be the model of the EditPart. Am
I right?

can it be possible to get the EditPart back from
that "object"? How?

Thank you for any hints.
Re: How to get the EditPart from its model [message #227486 is a reply to message #227480] Mon, 27 April 2009 06:24 Go to previous message
Javier is currently offline JavierFriend
Messages: 57
Registered: July 2009
I don't know if there is a better way than this, but you can perform a
search in the EditPartRegistry of your application... it'll work if you
don't have several EditPart instances for one model instance
Previous Topic:GMF , is it what i need ?
Next Topic:decorate rectangle
Goto Forum:

Current Time: Wed Sep 19 17:23:19 GMT 2018

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

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

Back to the top