Skip to main content



      Home
Home » Eclipse Projects » GEF » How to implement multiple ConnectionAnchors for an EditPart?
How to implement multiple ConnectionAnchors for an EditPart? [message #214257] Fri, 14 April 2006 10:12
Eclipse UserFriend
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.
Previous Topic:Perpendicularity
Next Topic:Send notification to outline view
Goto Forum:
  


Current Time: Thu Sep 04 17:01:33 EDT 2025

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

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

Back to the top