Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Retrieve connection editpart
Retrieve connection editpart [message #667781] Mon, 02 May 2011 08:29 Go to next message
Adrian Civil is currently offline Adrian Civil
Messages: 10
Registered: January 2011
Junior Member
I'm trying to obtain the editpart of a connection. To find the editparts for elements I use the editpart.findEditPart(Editpart, EObject) function.

However, this does not find editparts for connections. What would be a way to obtain these?
Re: Retrieve connection editpart [message #667951 is a reply to message #667781] Mon, 02 May 2011 23:46 Go to previous messageGo to next message
Jevon  is currently offline Jevon
Messages: 164
Registered: July 2009
Senior Member
Hi Adrian,

I assume you are trying findEditPart(getTopGraphicEditPart(), EObject)?

Jevon

Adrian Civil wrote:
> I'm trying to obtain the editpart of a connection. To find the editparts
> for elements I use the editpart.findEditPart(Editpart, EObject) function.
>
> However, this does not find editparts for connections. What would be a
> way to obtain these?
Re: Retrieve connection editpart [message #668158 is a reply to message #667781] Wed, 04 May 2011 08:39 Go to previous message
Adrian Civil is currently offline Adrian Civil
Messages: 10
Registered: January 2011
Junior Member
I used the editpart of my diagram element. This had all the model elements as children, but not the links between them. These can be found as source and target connections of the elements.

By editing the findEditPart method I've been able to retrieve the link editparts as well.
Previous Topic:Re: Cannot modify resource set when changing a reference to another model in the platform
Next Topic:Run Configuration for a GMF Diagram
Goto Forum:
  


Current Time: Thu Oct 23 16:35:20 GMT 2014

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

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