How to implement multiple ConnectionAnchors for an EditPart? [message #214257] |
Fri, 14 April 2006 14:12 |
Eclipse User |
|
|
|
Originally posted by: pbeagan.yahoo_dontspamme_.com
How do I implement a solution for multiple ConnectionAnchors for an
EditPart? I tried to implement a Hashtable of ConnectionAnchors in my
EditPart. But this led to 'Widget disposed to early' errors. Any
suggestions? My problem statement is below.
I am extending NodeEditPart for my EditPart. It has multiple source
connections attached. The source connections must be connected to the
EditPart in specified locations, determined in the
ConnectionAnchor.getLocation() method.
Inside the ConnectionEditPart.refreshVisuals() , I give the ConnectionAnchor
the location (actually a child figure to use for a location).
Problem is this: My NodeEditPart has member variable mySourceConnection
which is accessed via getSourceConnectionAnchor(ConnectionEditPart)
methods. Since there is only one ConnectionAnchor, all the connections are
forced to one location upon refresh, so I need to have multiple
ConnectionAnchors that are keyed off the ConnectionEditPart that they are
related to.
|
|
|
Powered by
FUDForum. Page generated in 0.03168 seconds