I assume you are trying findEditPart(getTopGraphicEditPart(), EObject)?
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?