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

Bug 465581

Summary: [Activity Diagram] Duplicate label for SendSignalAction
Product: [Modeling] Papyrus Reporter: Camille Letavernier <cletavernier>
Component: DiagramAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: borlander, mickael.adam29, papyrus-bugs, toni.siljamaki
Version: 1.1.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 468709    

Description Camille Letavernier CLA 2015-04-27 09:11:26 EDT
When creating a SendSignalAction in the Activity Diagram, both fixed and floating labels are displayed

The fixed label should be sufficient
Comment 1 Camille Letavernier CLA 2015-04-29 07:44:27 EDT
*** Bug 465782 has been marked as a duplicate of this bug. ***
Comment 2 Toni Siljamäki CLA 2015-04-29 08:21:59 EDT
See Bug 465782.
This needs to be checked also for imported models when Bug 465656 is fixed.
Comment 3 Camille Letavernier CLA 2015-04-30 06:54:59 EDT
Fixed in 5849da5 (master)

This is a non-issue for imported models since they don't have floating labels at all today (And once Bug 465656 is fixed, the floating labels will be created with a default value, i.e. whatever is declared in the CSS)
Comment 4 Toni Siljamäki CLA 2015-04-30 07:16:34 EDT
OK, so the actual capability for SendSignalAction to have a floating label
have been removed?  (= cannot get one, not even by mistake)
Comment 5 Camille Letavernier CLA 2015-04-30 07:21:35 EDT
> OK, so the actual capability for SendSignalAction to have a floating label
> have been removed? (= cannot get one, not even by mistake)

No: for the sake of customizability, ALL nodes in ALL diagrams can have either a fixed or a floating label (Or both). 

Still, "by mistake" seems highly unlikely, since this capability is not exposed in the UI: advanced graphical properties are only accessible through CSS (And that's indeed an invalid CSS rule which caused the duplicate)
Comment 6 Toni Siljamäki CLA 2015-05-04 08:22:28 EDT
Testing Papyrus UML 1.1.0.201505040451

The floating name label for SendSignalAction is gone now. :)

The fixed and/or floating name is a problem for the CSS displayName property,
since it does not explicitly make a difference between one or the other.

See Bug 460428 Comment 2.
Comment 7 Camille Letavernier CLA 2015-05-04 09:11:08 EDT
> The fixed and/or floating name is a problem for the CSS displayName property,
> since it does not explicitly make a difference between one or the other.

Fixed:

Class {
	displayName: true;
}

Floating:

Class > Label {
	visible: true;
}

or

Class > Label[kind=FloatingLabel] { 
	visible: true; 
}

They can be combined in any way (Both visible, both hidden, only fixed, or only floating)
Comment 8 Toni Siljamäki CLA 2015-05-04 09:18:26 EDT
I was only referring to the CSS "displayName" property descrition under Help.