Bug 405577 - [StateMachineDiagram] Display of states is well managed until we add new elements
Summary: [StateMachineDiagram] Display of states is well managed until we add new elem...
Status: ASSIGNED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 0.10.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Ansgar Radermacher CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2013-04-12 09:49 EDT by Samuel Rochet CLA
Modified: 2017-08-02 11:37 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Rochet CLA 2013-04-12 09:49:42 EDT
[STM] Display of states is well managed until we add new elements. However, if we try to redisplay a state previously hidden, we need to drag&dropp all its elements to redisplay them.
The appearance tab for a sate in the property view should be modified in order to propose display option as is it done for others elements.
Comment 1 Sébastien Gérard CLA 2013-04-15 16:57:43 EDT
Please, details the requirements with more details: what the display option which are cited in the previous comment. Thanks.
Comment 2 Samuel Rochet CLA 2013-04-16 11:05:15 EDT
The proposition is to add in the appearance options of a state an option similar to the label customisation of properties.
This option should enable the display of the graphical content of a state as entry, do or exit behaviors, the list of defered events, etc.

Another possibility can also be to allow the user selecting the elements to display via the "Show/Hide Content" dialog box.
Comment 3 Camille Letavernier CLA 2013-05-07 03:53:44 EDT
The do, entry and exit behaviors are indeed "lost" (i.e. they need to be dropped again) when the state is hidden.

The state compartment should work like Operation or Properties compartment:

- Implement the Show/Hide dialog

Moreover, as Do/Entry/Exit are [0..1] references, it may also be managed with an appearance property.

The State compartment is hidden by default. It should probably be visible by default.

We may also display the Do/Entry/Exit by default when they are available (It is the case when they are created)

Finally, the action which displays the do/entry/exit when it is set should be managed with an Advice. It is currently managed with a listener, and does not work when the diagram is closed.