Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322315

Summary: [CommonDiagram] Stereotype management does not work properly when a label is selected
Product: [Modeling] Papyrus Reporter: Vincent Hémery <vincent.hemery>
Component: DiagramAssignee: Project Inbox <mdt-papyrus-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: nifauvergue
Version: 0.7.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 322314, 322481    

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.