Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317412 - [All diagrams][Figures] Add a method to know on which side is an anchor
Summary: [All diagrams][Figures] Add a method to know on which side is an anchor
Status: CLOSED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 0.8.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Vincent Lorenzo CLA
QA Contact:
URL:
Whiteboard:
Keywords: api, plan
Depends on:
Blocks:
 
Reported: 2010-06-21 06:23 EDT by Vincent Lorenzo CLA
Modified: 2016-09-13 07:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lorenzo CLA 2010-06-21 06:23:18 EDT
The figures should have something like the PortLocator, to know on which side is an anchor.
Currently, the method org.eclipse.diagram.common.layout.LayoutUtils.getAnchorPosition(EditPart node, Point anchor) does this work, for :
 - the rectangular figures like classifiers, DurationObservation,..., 
 - the Package figures
 - the IOvalAnchorableFigure
 This method is used for the distribution action and the routing action.
 
Currently, some figures are not managed, that why it should be interesting add an interface for each figure (or editpart, I don't know).
This interface will provide the method getAnchorPosition().

The goal of this enhancement is to provide this method for each figure (links and nodes), and remove the method from the LayoutUtils.
Comment 1 Vincent Lorenzo CLA 2014-05-07 07:35:18 EDT
commit : 6942da7d8d3f8fbce2736ea061353eb2a80f61a5 : 
add ShowHide>RelatedLinkEditPolicy to class diagram (added to ModelEditPart)
Comment 2 Vincent Lorenzo CLA 2016-09-13 07:06:47 EDT
This bug can be marked as closed fixed.