Bug 538528 - Wrong line selection by the Move buttons of the Reference widget
Summary: Wrong line selection by the Move buttons of the Reference widget
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Properties (show other bugs)
Version: 6.0.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on: 539718
Blocks:
  Show dependency tree
 
Reported: 2018-09-03 04:49 EDT by Frédéric Madiot CLA
Modified: 2019-01-30 11:03 EST (History)
2 users (show)

See Also:


Attachments
Sample project to reproduce the issue (3.14 KB, application/zip)
2018-11-22 09:04 EST, Pierre-Charles David CLA
no flags Details
Sample video illustrating the reproduction steps (367.26 KB, video/mp4)
2018-11-22 09:05 EST, Pierre-Charles David CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frédéric Madiot CLA 2018-09-03 04:49:08 EDT
In the reference widget, after using one of the move buttons (up and down) the selected item in the list should be the one that has just been moved.
Currently the selection remains on the same position in the list.

Way to reproduce ;:
- let's say you have a list composed of A, B ,C, D
- select B
- click on Move Down
- the new order is : A, C, B, D
- the new selected item is C (it should be B again)

If you need to move an item to more than one position, you need to reselect it each time (otherwise, it comes back to its initial position)
Comment 1 Pierre-Charles David CLA 2018-11-22 09:04:43 EST
Created attachment 276660 [details]
Sample project to reproduce the issue

Steps to reroduce:
1. Import the attached project and open the diagram (you need Ecore Tools to be installed).
2. Select class "D". In the properties view, the ESuperTypes are "A", "B", "C", in that order.
3. Select "B" in the list of supertypes and hit the "Move Up" button. The order is correctly changed to "B", "A", "C", but the selection stays on the second line, which is now "A" (KO). Selection should have stayed on "B" and moved up with it.
Comment 2 Pierre-Charles David CLA 2018-11-22 09:05:31 EST
Created attachment 276661 [details]
Sample video illustrating the reproduction steps
Comment 3 Pierre-Charles David CLA 2019-01-30 11:03:15 EST
The actual issue is in EEF and will be treated by https://bugs.eclipse.org/bugs/show_bug.cgi?id=539718. I leave this ticket opened because before it can be considered fixed in Sirius we will need to consume a released version of EEF which includes the fix.