Bug 531472 - Show/Hide Dialog: Automatic Child Selection
Summary: Show/Hide Dialog: Automatic Child Selection
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 5.1.0   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-02-21 09:34 EST by Hendrik Buender CLA
Modified: 2018-05-15 05:30 EDT (History)
1 user (show)

See Also:


Attachments
Plugin Projects (2.60 MB, application/x-zip-compressed)
2018-02-21 09:34 EST, Hendrik Buender CLA
no flags Details
Runtime Projects (36.48 KB, application/x-zip-compressed)
2018-02-21 09:34 EST, Hendrik Buender CLA
no flags Details
project to reproduce (13.95 KB, application/x-zip-compressed)
2018-02-23 09:16 EST, Pierre Guilet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hendrik Buender CLA 2018-02-21 09:34:18 EST
Created attachment 272788 [details]
Plugin Projects

In accordance to the discussion in the forum (https://www.eclipse.org/forums/index.php/m/1768673/#msg_1768673) I created this bug. 

Description and Steps to reproduce

Imagine a class diagram on which some classes with their attributes and operations are shown. When you do a right click on the diagram you can select "Show/Hide" from the menu. This will open a dialog with a tree viewer that lists all elements (and their children) shown on the diagram. In contrast to the usual Eclipse behavior, if you select/deselect a parent element not all its child elements are selected/deselected. 
System Information:
- Eclipse Mars 2 (4.5.2)
- Sirius 5.1.0
- Xtext 2.13
- Windows 64, IntelCore I7-4700, 16GB RAM

1. Download sampleProject.zip, unzip and import into workspace
2. Start runtime
3. Download sampleRuntimeProject.zip, unzip and import into runtime workspace
4. Open /org.eclipse.xtext.example.domainmodel.sample/src/org/eclipse/xtext/example/domainmodel/sample/representation/representations.aird --> Company Entity Diagram
5. Right Click on the model and select "Show/Hide" from the menu.
6. Within the menu select or deselect and top-level element from the tree viewer ==> The child elements are not changed (selected/deselected) which IMHO is not the standard eclipse behavior.
Comment 1 Hendrik Buender CLA 2018-02-21 09:34:51 EST
Created attachment 272789 [details]
Runtime  Projects
Comment 2 Pierre Guilet CLA 2018-02-23 09:16:19 EST
Created attachment 272856 [details]
project to reproduce
Comment 3 Pierre Guilet CLA 2018-02-23 09:22:26 EST
Thanks for the very precise report. It is appreciable.

I attached a project to reproduce independent from Xtext for easier homologation.
Steps to reproduce:

1- import the project
2- open the representation
3- click on show/hide button in tabbar
4- check/uncheck a root element containing children.
KO: children are not checked/unchecked
Comment 4 Hendrik Buender CLA 2018-05-15 05:30:08 EDT
Nice to see that you could reproduce the bug. Will the fix be part of the upcomming release?