Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 529536 - Wrong behaviors for selection by zone with ALT key pressed
Summary: Wrong behaviors for selection by zone with ALT key pressed
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 5.1.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: 5.1.1   Edit
Assignee: Laurent Redor CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-08 11:05 EST by Laurent Redor CLA
Modified: 2018-02-05 09:24 EST (History)
3 users (show)

See Also:


Attachments
SelectionProject.zip (3.47 KB, application/x-zip-compressed)
2018-01-08 11:05 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 2018-01-08 11:05:15 EST
Created attachment 272177 [details]
SelectionProject.zip

You can use a zone to select several elements as explained in Selection section of chapter https://www.eclipse.org/sirius/doc/user/diagrams/Diagrams.html#standardToolId.

The ALT key is not described in this documentation but it allows to use the selection by a zone with a container under the initial location of the zone. This mode has not the same behavior as selection by a zone with the diagram under the initial location of the zone. There are 2 differences:
* the border nodes are not selected
* the 2 modes, "from left to right" and "from right to left", are not available.

Steps to reproduce:
* Import project Selection from SelectionProject.zip (data copied from /org.eclipse.sirius.tests.swtbot/data/unit/hiddenElements/VP-3473)
* Open the diagram "New Diagram"
* Draw a selection rectangle from "just before the top-left corner of p1" to "just after the bottom-right cordner of a1".
* OK --> Only a1 is selected as it is the only element fully contained in the selection
* Draw a selection rectangle from "just after the bottom-right corner of p1" to "just before the top-left cordner of a2".
* OK --> p1, E2 and a2 are selected as they all intersect the selection
* Press ALT key and draw rectangle from "just before the top-left corner of E1" to "just after the bottom-right cordner of a1" (the initial location of the selection zone is in the container p1).
* KO --> Nothing is selected. a1 should be selected as it is fully contained in the selection
* Press ALT key and draw rectangle from "just after the bottom-right corner of E2" to "just before the top-left cordner of a2" (the initial location of the selection zone is in the container p1).
* KO --> Nothing is selected. E2 and a2 should be selected as they intersect the selection
Comment 1 Eclipse Genie CLA 2018-01-09 03:25:58 EST
New Gerrit change created: https://git.eclipse.org/r/115092
Comment 3 Maxime Porhel CLA 2018-01-09 09:46:17 EST
Not present in 5.1.1-rc2 
Rc3 is needed to validate this issue
Comment 4 Jessy Mallet CLA 2018-01-11 10:00:03 EST
Scenario fails with sirius 5.1.1.201801101401.

If user press ALT key and draw rectangle from "just after the bottom-right corner of E2" to "just before the top-left cordner of a2", the container p1 should not be selected.
Comment 5 Maxime Porhel CLA 2018-01-11 10:05:41 EST
See Jessy's comment
Comment 6 Eclipse Genie CLA 2018-01-11 10:09:24 EST
New Gerrit change created: https://git.eclipse.org/r/115250
Comment 8 Pierre-Charles David CLA 2018-02-01 03:25:34 EST
Available in Sirius 5.1.1. See https://wiki.eclipse.org/Sirius/5.1.1 for details.