Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322315 - [CommonDiagram] Stereotype management does not work properly when a label is selected
Summary: [CommonDiagram] Stereotype management does not work properly when a label is ...
Status: CLOSED WORKSFORME
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 322314 322481
  Show dependency tree
 
Reported: 2010-08-11 03:11 EDT by Vincent Hémery CLA
Modified: 2018-06-01 09:59 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 Vincent Hémery CLA 2010-08-11 03:11:57 EDT
When an external label is selected, stereotype application does not impact the stereotype label. In addition, updating the stereotypes display in Properties>Appearance view has no effect.

This bug impacts all diagrams using a node with an external label :
- Class diagram : TimeObservation and DurationObservation
- Communication diagram : TimeObservation and DurationObservation
- Composite diagram : Parameter, Port, TimeObservation and DurationObservation
- Sequence diagram : TimeConstraint, TimeObservation and DurationConstraint (still in development)

Steps to reproduce :
- Select the external label of an element (among the above list).
- In Properties>Profile tab, apply a stereotype.
- => the stereotype display is not refreshed by the org.eclipse.papyrus.diagram.common.editpolicies.AppliedStereotypeExternalNodeEditPolicy class, though the stereotype is applied on the UML element.
- Select the parent node itself.
- In Properties>Profile tab, apply another stereotype.
- => Only the second applied stereotype is displayed. In Properties>Appearance tab, the old stereotype is marked as not displayed.
- Select the external label.
- In Properties>Appearance tab, update visibility of stereotypes or stereotypes' properties.
- => the changes have no impact at all.
Comment 1 Vincent Hémery CLA 2010-08-12 04:48:54 EDT
Apparently, this does not applies only to external label, but to any label.
The profile representation should really be updated when a label is selected, even if it is not the main figure edit part.

This bug will be a major problem for DurationObservation and DurationConstraint on messages in the sequence diagram, since their representation is only a label (contained in a node edit part which is almost invisible)
(enhancement bug 322481)
Comment 2 Patrick Tessier CLA 2013-04-29 06:03:05 EDT
In fact, papyrus try to display stereotype property in comportement of port duration observation.
display is compartment for this element must not be possible
Comment 3 Nicolas FAUVERGUE CLA 2018-06-01 09:59:52 EDT
This works on Photon RC2.