Bug 396286 - ConnectionEndpointLocator doesn't locate label when figure is in parent figure
Summary: ConnectionEndpointLocator doesn't locate label when figure is in parent figure
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 8
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-11 10:38 EST by Phil Beauvoir CLA
Modified: 2012-12-11 10:39 EST (History)
0 users

See Also:


Attachments
Patch (1.23 KB, patch)
2012-12-11 10:38 EST, Phil Beauvoir CLA
no flags Details | Diff
Screenshot (4.22 KB, image/png)
2012-12-11 10:39 EST, Phil Beauvoir CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Beauvoir CLA 2012-12-11 10:38:08 EST
Created attachment 224571 [details]
Patch

Using a ConnectionEndpointLocator to locate labels on connections. If figure is in a parent figure where the parent figure returns true for

Fix for org.eclipse.draw2d.ConnectionEndpointLocator
Problem: when a Figure is inside another Figure which returns true for useLocalCoordinates() (uses local co-ordinate system) then the connection's label locator is screwed if set to source and figure is on the right, or set to target and the figure is on the left.
Comment 1 Phil Beauvoir CLA 2012-12-11 10:39:38 EST
Created attachment 224573 [details]
Screenshot

Top part shows wrong, bottom show right.