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

Bug 442289

Summary: Distribute shapes
Product: [Modeling] Sirius Reporter: Esteban DUGUEPEROUX <esteban.dugueperoux>
Component: DiagramAssignee: Laurent Redor <laurent.redor>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: belqassim.djafer, laurent.redor, pierre-charles.david
Version: 1.0.0Keywords: triaged
Target Milestone: 2.0.0   
Hardware: PC   
OS: Windows NT   
Whiteboard:
Bug Depends on:    
Bug Blocks: 580418    

Description Esteban DUGUEPEROUX CLA 2014-08-21 12:21:50 EDT
This is a feature request to have actions on nodes selection in diagram to distributes them horizontally/vertically with a same space between them, i.e. between their centers or their bounds.
Comment 1 Esteban DUGUEPEROUX CLA 2014-08-25 12:46:25 EDT
This is the spec https://git.eclipse.org/r/#/c/32168/
Comment 2 Esteban DUGUEPEROUX CLA 2014-08-25 12:57:22 EDT
A draft of code is available https://git.eclipse.org/r/#/c/32169/
Comment 5 Laurent Redor CLA 2014-10-07 04:00:32 EDT
A new bug has been discovered for this new feature (bug 446124).  The bug 446124 will be closed as duplicate of this one to clarify the list of bugs resolved in Sirius 2.0.0.
Comment 6 Laurent Redor CLA 2014-10-07 04:01:19 EDT
*** Bug 446124 has been marked as a duplicate of this bug. ***
Comment 7 Laurent Redor CLA 2014-10-07 05:01:11 EDT
Proposition of fix for bug of comment 4: https://git.eclipse.org/r/34487
Comment 8 Laurent Redor CLA 2014-10-14 08:35:41 EDT
Two remaining problem:
* Bug: The case of large shape that is the first and the last shape of the current selection. In this case, there is nothing to do.
* Enhancement: Currently, the gap is rounded to the lower Integer. So the last gap can be different. To minimize the delta between the last gap and the others, we should round up to the lower Integer if the remainder is less than or equal to 0.5 and higher integer if the remainder is greater than 0.5.
Comment 10 Laurent Redor CLA 2014-10-16 04:32:43 EDT
New tests have been added for these new actions: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=232673f9ff287bf450f9b3bcd9dadc94b6562497
Comment 11 Pierre-Charles David CLA 2014-10-27 06:52:18 EDT
Available in Sirius 2.0.0.