Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 580418 - Add align and distribute actions to edge labels
Summary: Add align and distribute actions to edge labels
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: 7.1.0   Edit
Assignee: Laurent Redor CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 442289
Blocks:
  Show dependency tree
 
Reported: 2022-07-21 04:18 EDT by Laurent Redor CLA
Modified: 2023-03-29 12:45 EDT (History)
0 users

See Also:


Attachments
Bugzilla580418.zip (57.27 KB, application/x-zip-compressed)
2023-01-19 09:32 EST, Laurent Redor CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Redor CLA 2022-07-21 04:18:34 EDT
Currently, the align actions and distribute actions are available on shapes. The goal of the issue is to have a similar behavior for these actions on labels of edges.
Comment 1 Laurent Redor CLA 2022-07-22 08:05:17 EDT
The specification for this issue is available here [1] and a gerrit concerning a DRAFT of work done during analysis is available here [2].

[1] https://github.com/eclipse-sirius/sirius-specs/blob/lre/spec/580418-alignAndDistributeEdgeLabels/specs/proposal/580418_addAlignAndDistributeToEdgeLabels/580418_addAlignAndDistributeToEdgeLabels.md
[2] https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/69304
Comment 2 Laurent Redor CLA 2023-01-19 09:32:58 EST
Created attachment 288940 [details]
Bugzilla580418.zip

Steps to validate (the automatic tests will be more comprehensive):
* Import project "Bugzilla580418" from Bugzilla580418.zip
* Open session "edgeLabelAlignTest"
* Open diagram "3LabelsOnEdge"
* Select labels "startc03toC01" and "startc02toC01" (in this specific order)
* Launch action "Align Left" (with the 3 ways: tabbar menu, action in contextual menu "Format/Align/Left" and Eclipse menu "Diagram/Align/Left")
* Expected: The label "startc02toC01" doesn't move (this is the reference), and the left side of label "startc03toC01" is aligned to left side of the label "startc02toC01".
* Undo (and restart with all ways)
* Select labels "startc02toC01" and "startc03toC01" (in this specific order)
* Launch action "Align Center" with the tabbar menu
* Expected: The label "startc03toC01" don't move (this is the reference), and the horizontal center of label "startc02toC01" is aligned to center of the label "startc02toC01".
* Undo
* Select labels "startc03toC01", "c03toC01" and "endc03toC01"
* Launch action "Distibute Centers Horizontally" (with the 3 ways: tabbar menu, action in contextual menu "Format/Distribute/Centers Horizontally" and Eclipse menu "Diagram/Distribute/Centers Horizontally")
* Expected: The labels "startc03toC01" and "endc03toC01"  don't move (these are the references), and the label "c03toC01" is moved between the two others.
Comment 3 Eclipse Genie CLA 2023-01-27 09:49:27 EST
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/199599
Comment 5 Pierre-Charles David CLA 2023-03-29 12:44:00 EDT
Available in Sirius Desktop 7.1.0:
- Release record: https://projects.eclipse.org/projects/modeling.sirius/releases/sirius-desktop-7.1.0
- Update site: https://download.eclipse.org/sirius/updates/releases/7.1.0/2021-06/