| 
| Connection Retarget problem [message #119436] | Wed, 25 February 2004 13:07  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: bharath.starthis.com 
 Hi,
 
 I have a source edit part and a target edit part connected by an edge edit
 part. When I move the edge from one target and reconnect it to another,
 the edge is removed from the original target and gets affixed to the new
 target. The problem is, the edge does originate from the source anymore.
 It positions itself at the top left corner of the screen.
 
 If I save my editor and re-open it, I can see the correct result. I tried
 to change refreshVisuals() of the edge edit part to reflect the change but
 it does not work. Did anybody come across this problem?
 
 Thanks in advance.
 
 Bharath.
 |  |  |  | 
|  | 
| 
| Re: Connection Retarget problem [message #119490 is a reply to message #119477] | Wed, 25 February 2004 19:16  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: bharath.starthis.com 
 Hi Randy,
 
 Thanks for your advice. The anchor may not be the problem because I return
 just a ChopboxAnchor which renders jagged edges. I wrote my own anchor to
 correct it but I am able to place the anchor ONLY on one specific side
 (left or right). My edge should go to the top, left or right side of the
 edit part (rectangle) and I am looking for a function which will indicate
 the side of the rectangle on which the edge intersects.
 
 If I have to refresh the edge edit part, I only need to attach the current
 source and target after retargetting, right?
 
 Thanks!
 
 Randy Hudson wrote:
 
 > It sounds like the source connection anchor is getting messed up.  I would
 > try stepping through the code and see what is happening.  I think there are
 > some places where if you aren't provide a valid anchor, we create a bogus
 > one in the top-left so that you can see the connection and know that things
 > are bad.
 
 > "Bharath" <bharath@starthis.com> wrote in message
 > news:c1io91$959$1@eclipse.org...
 > > Hi,
 > >
 > > I have a source edit part and a target edit part connected by an edge edit
 > > part. When I move the edge from one target and reconnect it to another,
 > > the edge is removed from the original target and gets affixed to the new
 > > target. The problem is, the edge does originate from the source anymore.
 > > It positions itself at the top left corner of the screen.
 > >
 > > If I save my editor and re-open it, I can see the correct result. I tried
 > > to change refreshVisuals() of the edge edit part to reflect the change but
 > > it does not work. Did anybody come across this problem?
 > >
 > > Thanks in advance.
 > >
 > > Bharath.
 > >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.26285 seconds