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

Bug 345882

Summary: [StateMachine Diagram] The syntax "Trigger[Guard]/Effect" is not displayed on the transition
Product: [Modeling] Papyrus Reporter: Fabien Gautreault <fabien.gautreault.ext>
Component: CoreAssignee: Ansgar Radermacher <ansgar.radermacher>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ansgar.radermacher, charles, Patrick.Tessier, raphael.faudou, zephod
Version: 0.8.1   
Target Milestone: 3.0.0   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/83458
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=b5c955b52886d1b4785adc1b7a26fb04848af243
https://git.eclipse.org/r/83505
https://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=9e4a22122a5dbed3f4209c72b289f95b4817cc89
Whiteboard:

Description Fabien Gautreault CLA 2011-05-16 04:14:49 EDT
Build Identifier: 20100617-1415

[StateMachine Diagram] The syntax "Trigger[Guard]/Effect" is not displayed on the transition in the diagram, only the name of the transition is displayed.

Reproducible: Always
Comment 1 David Servat CLA 2011-05-24 08:19:32 EDT
This is not the case, such information are shown. The way triggers are created vary depending on they being a when, at, etc. For triggers attached to CallEvent, you select "all" in the dedicated text editor, this creates a generic Trigger attached to the transition, then in the property view if the Trigger you select an event, e.g. a CallEvent. The transition is then updated
Comment 2 Raphael Faudou CLA 2011-11-09 16:55:48 EST
guard specification content is not displayed : always [""]
Comment 3 Camille Letavernier CLA 2013-03-01 04:09:31 EST
Change the severity to normal
Comment 4 Stephen Blackwell CLA 2016-10-17 12:21:42 EDT
This problem still exists in version 2.0.1.

See the forum thread 
https://www.eclipse.org/forums/index.php/t/1081918/
for an example.
Comment 5 Ansgar Radermacher CLA 2016-10-18 03:40:53 EDT
I can confirm that this problem exists. I'm pretty sure that the trigger / action display used to work some time ago (after March 2014), it looks like a regression.
Anyway, I'll examine the source of the problem.
Comment 6 Stephen Blackwell CLA 2016-10-18 09:02:05 EDT
I suggest that the "Trigger[Guard]/Effect" should be the default label for transitions. Perhaps it was when it was working.
Comment 7 Eclipse Genie CLA 2016-10-18 12:28:31 EDT
New Gerrit change created: https://git.eclipse.org/r/83458
Comment 9 Eclipse Genie CLA 2016-10-19 05:06:37 EDT
New Gerrit change created: https://git.eclipse.org/r/83505
Comment 10 Ansgar Radermacher CLA 2016-10-19 05:17:07 EDT
Stephen, can you please retry with a nightly build after the build for the 2.0-maintenance has been done.

Please also note, that the appearance of the label can be configured via the Papyrus preferences or the CSS: https://wiki.eclipse.org/MDT/Papyrus/UserGuide/CSS
The relevant parameters are bodyCutLength", "indicateParameters" and "lineBreakBeforeEffect". 
The latter has the advantage that the configuration can be done on a diagram basis.
Comment 11 Eclipse Genie CLA 2016-10-19 05:39:16 EDT
Gerrit change https://git.eclipse.org/r/83505 was merged to [streams/2.0-maintenance].
Commit: http://git.eclipse.org/c/papyrus/org.eclipse.papyrus.git/commit/?id=9e4a22122a5dbed3f4209c72b289f95b4817cc89
Comment 12 Stephen Blackwell CLA 2016-10-19 13:28:02 EDT
(In reply to Ansgar Radermacher from comment #10)
> Stephen, can you please retry with a nightly build after the build for the
> 2.0-maintenance has been done.
> 
> Please also note, that the appearance of the label can be configured via the
> Papyrus preferences or the CSS:
> https://wiki.eclipse.org/MDT/Papyrus/UserGuide/CSS
> The relevant parameters are bodyCutLength", "indicateParameters" and
> "lineBreakBeforeEffect". 
> The latter has the advantage that the configuration can be done on a diagram
> basis.

When is the 2.0-maintenance happening?
I tried an update from:
  http://download.eclipse.org/modeling/mdt/papyrus/updates/nightly/neon

which I got from the
  https://www.eclipse.org/papyrus/download.html
web page but there were no updates
Comment 13 Ansgar Radermacher CLA 2016-10-20 04:10:14 EDT
I've updated this morning (using the update site below) and got a new version. The state-machine labels work.

(In reply to Stephen Blackwell from comment #12)
> When is the 2.0-maintenance happening?
> I tried an update from:
>   http://download.eclipse.org/modeling/mdt/papyrus/updates/nightly/neon
> 
> which I got from the
>   https://www.eclipse.org/papyrus/download.html
> web page but there were no updates