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

Bug 364688

Summary: [Sequence Diagram] - Lifeline alignment
Product: [Modeling] Papyrus Reporter: Chokri Mraidha <Chokri.Mraidha>
Component: CoreAssignee: Chokri Mraidha <Chokri.Mraidha>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dave, yves.yang
Version: 0.9.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Improve the Lifeline layout
sebastien.gerard: iplog+
Design doc
sebastien.gerard: iplog+
Disable "Distribution Node/Link vertical"
none
Disable all vertical moving requests sebastien.gerard: iplog+

Description Chokri Mraidha CLA 2011-11-24 04:02:45 EST
All lifelines (except lifelines that are result of a create message) should be aligned vertically and must remain aligned.
Comment 1 Yves YANG CLA 2012-03-01 21:32:27 EST
Created attachment 211930 [details]
Improve the Lifeline layout

Select the project org.eclipse.papyrus.uml.diagram.sequence to apply this patch.
Comment 2 Yves YANG CLA 2012-03-01 21:33:22 EST
Created attachment 211931 [details]
Design doc
Comment 3 Camille Letavernier CLA 2012-03-02 03:31:21 EST
Patch committed in r7324
Comment 4 Camille Letavernier CLA 2012-03-02 03:40:13 EST
This patch brings a few problems:

- Old diagrams' lifelines are not (and cannot be) aligned with new ones
- Distribute actions ("Distribute node/links vertically", from uml.diagram.menu) can change the lifeline alignment (As well as other layout options from the toolbar)
Comment 5 Yves YANG CLA 2012-04-04 12:50:30 EDT
Created attachment 213592 [details]
Disable "Distribution Node/Link vertical"
Comment 6 Yves YANG CLA 2012-04-04 12:51:54 EDT
This patch modifies two projects:
   org.eclipse.papyrus.uml.diagram.menu
   org.eclipse.papyrus.uml.diagram.sequence
Comment 7 Yves YANG CLA 2012-04-05 08:10:47 EDT
Created attachment 213625 [details]
Disable all vertical moving requests
Comment 8 Chokri Mraidha CLA 2012-04-23 05:19:59 EDT
The proposed patch fixes the bug.
Comment 9 Chokri Mraidha CLA 2012-04-23 05:20:41 EDT
Fix commited on the trunk r.7958
Comment 10 Chokri Mraidha CLA 2012-04-23 05:30:14 EDT
Lifelines are not resizable horizontally anymore. This causes problems for large labels and will cause problems for part decompositions.
Comment 11 Chokri Mraidha CLA 2012-04-23 05:43:03 EDT
It seems that the bug does not occur for new models.
Comment 12 David Akehurst CLA 2012-07-03 04:03:33 EDT
Where in the UML standard does it say that lifelines must be aligned?

This patch may be the root cause of the bug 379661.
Comment 13 Chokri Mraidha CLA 2012-07-04 09:19:30 EDT
The UML standardizes the abstract syntax, but diagrams are not standardized (there is no metamodel specifying how each diagram should be represented). Hence, the standard does'nt say anything on lifelines alignement or not. This alignment is then compatible with the UML standard. We have made this choice to avoid a lot of other troubles in link with the capability to put lifelines everywhere.
However, this restriction takes into account lifelines that are result of create messages.