Bug 417180 - [CSS] The CSS Engine shall support element visibility
Summary: [CSS] The CSS Engine shall support element visibility
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: M2   Edit
Assignee: Camille Letavernier CLA
QA Contact:
URL:
Whiteboard: Usability
Keywords: plan
Depends on:
Blocks: 417178
  Show dependency tree
 
Reported: 2013-09-13 08:22 EDT by Camille Letavernier CLA
Modified: 2013-12-06 11:18 EST (History)
0 users

See Also:
cletavernier: luna+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Camille Letavernier CLA 2013-09-13 08:22:44 EDT
Currently, the CSS Engine only supports Style properties (i.e. all EAttributes in the Subclasses of the Style metaclass, in the GMF notation metamodel)

visibility is a property of View (Which is the most generic concept in GMF Notation metamodel). The CSS Engine must support it.

We shall be able to write the following style:

Class[isAbstract]{
	visible:false; /* Hide all abstract classes */
}

This might be a dangerous behavior (Because the element is hidden from the Diagram, the user has no way to show it back. Moreover, CSS are dynamic, which can lead to surprising behaviors), but it is especially useful in the following cases:

- Show/Hide compartments: The compartment must not be destroyed; only graphically hidden from the diagram. When showing it back, it shall have exactly the same contents.
- Model Animation: Temporarily hide some elements
Comment 1 Camille Letavernier CLA 2013-09-25 10:19:12 EDT
Done in 367fd6420244fc13a99c0acf18fdeb971641f935, 3f81804717eaf0b075fc9eafe3291ed905cd033c
Pushed to master
Comment 2 Camille Letavernier CLA 2013-12-06 11:18:24 EST
Backported to Kepler (0.10-maintenance)