Created attachment 269717 [details]
ScreenShot of multiple border node creation behaviour
Created attachment 269729 [details]
Properties of the grid
Issue accepted and marked as triaged. New Gerrit change created: https://git.eclipse.org/r/102984 New Gerrit change created: https://git.eclipse.org/r/103649 Created attachment 270007 [details]
Additional Use Case with tools creating multiple Containers and border nodes
With the second use case,
* Make sure the snap to grid is activated
* Open the representation
* Apply the package creation tool
* 3 packages are created, they are all visible and snapped on the grid.
* Apply the eClass creation tool on one of the packages
* 3 Border nodes are created, all snapped on the grid
The above scenario is not covered by an automatic test. It must be added before closing the issue as resolved. Gerrit change https://git.eclipse.org/r/103649 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=6576c03bceb2fc723b55bf5b694f1f5fc71d9d9c Gerrit change https://git.eclipse.org/r/102984 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=089ecb94010986c6cdd7a5d86c90a558693ed000 New Gerrit change created: https://git.eclipse.org/r/104626 Gerrit change https://git.eclipse.org/r/104626 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f7289093aeb0823dca566b174ab6753d90246474 New Gerrit change created: https://git.eclipse.org/r/104630 New Gerrit change created: https://git.eclipse.org/r/104635 Gerrit change https://git.eclipse.org/r/104630 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=41968cea31afb15f04a891d28e4c50a68481abd6 Gerrit change https://git.eclipse.org/r/104635 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=ed2ea73448b7063225e100400d422a58349ecf70 New Gerrit change created: https://git.eclipse.org/r/104892 Gerrit change https://git.eclipse.org/r/104892 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=8756c943f0a17d6e1cef939cf2f8ac1676b779fb New Gerrit change created: https://git.eclipse.org/r/105539 Reopened.
Steps to reproduce:
Import the attachment 270007 [details]
Duplicate the project.
Open the two representations (the one from the original project and the one from the copy)
Set two different grid spacing for those diagrams (with the snap activated for both).
Apply the create package tool on each one of the two editors.
The grid parameter is not considered for one of the editor. KO
Indeed, the Diagram XMIID is used for retrieving the diagram parameters. As they have the same xmiid, the parameters of one diagram is applied for both.
Gerrit change https://git.eclipse.org/r/105539 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=d5ed8025112b9090d44d74010ed0bfc56c60868a Validated on Sirius Stable 5.1.0.201709221508 Available in Sirius 5.1.0, see https://wiki.eclipse.org/Sirius/5.1.0. |
Created attachment 269716 [details] Test case to use. On diagram with "Snap to grid" activated, when user wants to create several border nodes from a tool of the palette, the first one is snapped to the grid and the others are shift and not aligned on the grid in spite of grid spacing is sufficient. All created border node should take into account "Snap to grid" constraints. Step to reproduce : * import in your workspace the modeling project MultipleBorderNodeCreation.zip, * open representation "new packageDiag", * make sure that "Snap to Grid" box is marked in properties view of diagram (tab Rulers&Grid) * clic on "createClass" tool from the palette and create a class on P3 package * create an other class at the same localisation than before * both border Node appears on P3 package but last one is not snap on grid, just shift from the first one -> KO It should be align on the grid.