Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317412

Summary: [All diagrams][Figures] Add a method to know on which side is an anchor
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: DiagramAssignee: Vincent Lorenzo <vincent.lorenzo>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 Keywords: api, plan
Version: 0.8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.