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

Bug 317938

Summary: [Layout] Alignment doesn't work on Port
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Yann Tanguy <yann.tanguy>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.7.0   
Target Milestone: 0.7.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 309645    

Description Vincent Lorenzo CLA 2010-06-25 05:36:48 EDT
The alignment functions doesn't allow align ports
Comment 1 Vincent Lorenzo CLA 2010-06-25 05:41:56 EDT
To align port, the ClassComposite needs to answer to 
	REQ_ALIGN  -> we allow the access to getAlignCommand() in BorderItemResizableEditPolicy
	REQ_CHILDREN_ALIGN -> we create the editpolicy AffixedNodeAlignmentEditPolicy

We add this new EditPolicy to the class composite
Comment 2 Vincent Lorenzo CLA 2010-06-25 05:53:37 EDT
Done in r2086
Comment 3 Yann Tanguy CLA 2010-08-06 08:47:42 EDT
Partially implemented, currently the alignment is only allowed for Port (graphically) attached to Class, not when the Port is on a Part or any other Composite structure.
Comment 4 Yann Tanguy CLA 2010-08-06 12:21:29 EDT
Lacking alignment related EditPolicy installed on Part and Composite EditPart(s).

(r2549)
Comment 5 Yann Tanguy CLA 2010-08-16 07:03:24 EDT
AffixedNodeAlignmentEditPolicy role name renamed.

(r2559)