Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317938 - [Layout] Alignment doesn't work on Port
Summary: [Layout] Alignment doesn't work on Port
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.7.0   Edit
Assignee: Yann Tanguy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 309645
  Show dependency tree
 
Reported: 2010-06-25 05:36 EDT by Vincent Lorenzo CLA
Modified: 2010-08-16 07:03 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-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)