Community
Participate
Working Groups
If "Snap To Grid" property is enabled (in the "Rulers & Grid" tab of diagrams properties view), elements (node or edge) should be created on the grid. Steps to reproduce: * With Ecore tools 2 (for example), create a Class Diagram * Enable the "Snap To Grid" property ("Ruler Units"=Pixels, "Grid Spacing"=100) * Create a class on coordinates {125;125} * The class is created on {125;125}, it should be created on {100;100}. This enhancement will not be available for sequence diagrams because "Snap To Grid" is not supported for this kind of diagram (see documentation for more explanations).
Bug 435756 has been created: This bug has been discovered while creating use cases for this feature.
The spec for this feature is visible here: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/plain/plugins/org.eclipse.sirius.doc/specs/proposal/435507_SnapToGridForCreation/435507.html
Several commits for this feature: * Fix bug concerning creation in container [1] * Depreciate disableSnapToGrid() method [2] * Consider SnapTo during creation of node or edge [3] * Update Spec - Add ref to bugzilla 437544 [4] * Update Spec - Add details for edge case [5] * Change parameter of GraphicalHelper.getZoom [6] * Specific code for edge creation [7] * Fix default GMF size computation for container [8] * Fix border node location [9] * Add utilities methods for tests [10] [1] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=86ac80548b994991f615e8cb59685024ac7970a4 [2] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=a4b2d815269532639479a194f886291636af604a [3] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=278bcefbf04a5e93636b16b45ccce27e455cc3be [4] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=7ab961f2e4ed58e30af295bfe03835b3fef22e5d [5] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=becc81ad22b9da06c823dabdbebc680a78ee00bb [6] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=5daeaff4dd98074efe267c43799c4448276c8119 [7] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=37c2805bc120501210fc0839ca31c9fa3ddab67a [8] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=4054e2998f3cd09f43e6612e33cd3fe129c66e8c [9] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=475a05203d64876e1a17c7239fa07c5e12a1b657 [10] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=6dc712ef69e6b59e05c9ef31566d87daf4c20774
Fixed on master branch
Available in Sirius 2.0.0.
New Gerrit change created: https://git.eclipse.org/r/53381
Gerrit change https://git.eclipse.org/r/53381 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=18a3d109ccd0938113cbaf4baa775e0f46331257