Bug 446471 - Feature: Expand/collapse for containers
Summary: Feature: Expand/collapse for containers
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2014-10-09 10:32 EDT by Alexander Strakh CLA
Modified: 2015-07-08 05:35 EDT (History)
2 users (show)

See Also:


Attachments
Expand/collapse video (1.08 MB, video/ogg)
2014-10-09 10:32 EDT, Alexander Strakh CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Strakh CLA 2014-10-09 10:32:11 EDT
Created attachment 247758 [details]
Expand/collapse video

I create viewers for EMF model. Sometimes diagrams contains several nested  container levels. By default all levels shown on diagram. For small diagram it's normal. But for big diagrams it's very uncomfortable for viewing. 
There is need "expand/collapse" for containers.  
It's like on video in attachement.
Comment 1 Maxime Porhel CLA 2015-07-08 05:35:03 EDT
In Bug 470860, it is planned to add this kind of collapse for compartments [1], [2]  but not for  all containers at the moment.

When it's available (normally in Sirius 3.1 planned for late October), you might try to
 . add a new child container mapping (B) in your current container mapping (A)  (with the same domain class and var:self as semantic candidates expression), check the hide label per default in the style description of the new mapping
.  move the children node/container mappings of A in B
.  add B to the delete tool which handles A if it exists.
.  change the children presentation of  A to vertical stack

This will produce a container with a single compartment which will be collapsable after correction of Bug 470860.


[1] https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#compartments
[2] https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#graphical_elements