Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Transition labels in state diagram not displayed
Transition labels in state diagram not displayed [message #476563] Fri, 26 June 2009 10:26 Go to next message
Jens Rutschmann is currently offline Jens RutschmannFriend
Messages: 2
Registered: July 2009
Junior Member
Hi all,

When I create a state diagram with transitions the labels of those transitions
aren't displayed in the graph (the transition arrows are displayed corectly).

I made sure that the transition have proper names using the Property View.

Am I missing a config property or something?

I am using:
Eclipse 3.5.0
UML2 Tools SDK (Incubation) 0.9.0.v200906031456

Best regards,
Jens
Re: Transition labels in state diagram not displayed [message #476570 is a reply to message #476563] Tue, 30 June 2009 11:38 Go to previous messageGo to next message
Sergey Gribovsky is currently offline Sergey GribovskyFriend
Messages: 42
Registered: July 2009
Member
Hi Jens,

According UML specification: "Notation for a transition is defined by the
following BNF expression: <transition> ::= [<trigger> [',' <trigger>]* ['['
<guard-constraint>']'] ['/' <behavior-expression>]]"

So, the notation doesn't contain name of transition.

Best regards,
Sergey.

"Jens Rutschmann" <Jens.Rutschmann@gmx.info> wrote in message
news:h227o5$v4j$1@build.eclipse.org...
> Hi all,
>
> When I create a state diagram with transitions the labels of those
> transitions aren't displayed in the graph (the transition arrows are
> displayed corectly).
>
> I made sure that the transition have proper names using the Property View.
>
> Am I missing a config property or something?
>
> I am using:
> Eclipse 3.5.0
> UML2 Tools SDK (Incubation) 0.9.0.v200906031456
>
> Best regards,
> Jens
Re: Transition labels in state diagram not displayed [message #491947 is a reply to message #476570] Fri, 16 October 2009 16:42 Go to previous messageGo to next message
Tristan R is currently offline Tristan RFriend
Messages: 11
Registered: October 2009
Junior Member
Hi all,

I use :
Eclipse Modeling Tools 1.2.1.20090918-0703
Eclipse Platform 3.5.1.M20090917-0800
UML2 Tools SDK (Incubation) 0.9.0.v200906190654

and I Have exactly the same problem.

I don't understand Sergey answer. Is there a way to display something (name, guard, label or whatever...) on transitions arrows in state diagram ?

Is it a future functionnality ?

When I select an arrow, and type a text, it disappears at once when I click "Enter".

The way to solve it is to create a "Text" and position it next to the arrow, but it's not linked to the arrow.

[Updated on: Fri, 16 October 2009 17:02]

Report message to a moderator

Re: Transition labels in state diagram not displayed [message #495066 is a reply to message #491947] Tue, 03 November 2009 17:11 Go to previous messageGo to next message
Johan  is currently offline Johan Friend
Messages: 39
Registered: July 2009
Member
Hi,

I interpret Sergeys answer:

According UML specification: "Notation for a transition is defined by the
following BNF expression: <transition> ::= [<trigger> [',' <trigger>]* ['['
<guard-constraint>']'] ['/' <behavior-expression>]]"

as the UML specification says that a transition can be defined as zero, one or many triggers, followed by an optional guard constraint, followed by an optional behaviour expression.

If this is correct, then this means that the UML specification does not allow the name to be visible on the transition arrow in the diagram.

But I don't know this as a fact, this but it is my understanding of Sergeys answer above.

/Johan
Re: Transition labels in state diagram not displayed [message #497010 is a reply to message #476570] Thu, 12 November 2009 09:12 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: November 2009
Junior Member
Sergey Gribovsky wrote on Tue, 30 June 2009 07:38
Hi Jens,

According UML specification: "Notation for a transition is defined by the
following BNF expression: <transition> ::= [<trigger> [',' <trigger>]* ['['
<guard-constraint>']'] ['/' <behavior-expression>]]"

So, the notation doesn't contain name of transition.

Best regards,
Sergey.


Nevertheless the very first UML tutorial, linked from OMG's own uml.org site shows transition labels:
http://edn.embarcadero.com/article/31863#statechart-diagrams

http://edn.embarcadero.com/article/images/31863/statediagno3d.gif

Obviously, so should eclipse.
Re: Transition labels in state diagram not displayed [message #516682 is a reply to message #476563] Wed, 24 February 2010 18:37 Go to previous messageGo to next message
Bruno Bieth is currently offline Bruno BiethFriend
Messages: 2
Registered: February 2010
Junior Member
Yes, this is annoying for people who just want to create those diagram for documentation purpose only.
Re: Transition labels in state diagram not displayed [message #520618 is a reply to message #516682] Sat, 13 March 2010 11:22 Go to previous messageGo to next message
Satyagraha 1956 is currently offline Satyagraha 1956Friend
Messages: 8
Registered: January 2010
Junior Member
The above discussion suggests it ought to be possible to use a trigger as a substitute for the name as it should display.

So, what I did was:
- Activate context menu for a state transition
- Select Show Properties View
- Click the Show Advanced Properties icon on the right
- Scroll down and select the Trigger entry
- Press the [...] button on the right
- A new Trigger - <Transition> dialog appears

However its Choices panel is empty, with no immediately obvious way to change that.

So, how can I (non-programmatically) create Triggers for this field?

Thanks for any input Smile



Re: Transition labels in state diagram not displayed [message #520657 is a reply to message #520618] Sat, 13 March 2010 19:41 Go to previous messageGo to next message
Nick  is currently offline Nick Friend
Messages: 18
Registered: March 2010
Junior Member
I haven't tried this in eclipse, but I think it used to work in ArgoUML...

Try typing the text right on the arrow as you normally would, and begin it with a forward slash. This might trick the editor as treating your label as a behavior expression.

Not sure if it will work (I don't have eclipse installed on the machine I'm posting from) but it might be worth a shot.
Re: Transition labels in state diagram not displayed [message #624508 is a reply to message #476563] Tue, 30 June 2009 11:38 Go to previous messageGo to next message
Sergey Gribovsky is currently offline Sergey GribovskyFriend
Messages: 42
Registered: July 2009
Member
Hi Jens,

According UML specification: "Notation for a transition is defined by the
following BNF expression: <transition> ::= [<trigger> [',' <trigger>]* ['['
<guard-constraint>']'] ['/' <behavior-expression>]]"

So, the notation doesn't contain name of transition.

Best regards,
Sergey.

"Jens Rutschmann" <Jens.Rutschmann@gmx.info> wrote in message
news:h227o5$v4j$1@build.eclipse.org...
> Hi all,
>
> When I create a state diagram with transitions the labels of those
> transitions aren't displayed in the graph (the transition arrows are
> displayed corectly).
>
> I made sure that the transition have proper names using the Property View.
>
> Am I missing a config property or something?
>
> I am using:
> Eclipse 3.5.0
> UML2 Tools SDK (Incubation) 0.9.0.v200906031456
>
> Best regards,
> Jens
Re: Transition labels in state diagram not displayed [message #624909 is a reply to message #476570] Fri, 16 October 2009 16:42 Go to previous messageGo to next message
Tristan R is currently offline Tristan RFriend
Messages: 11
Registered: October 2009
Junior Member
Hi all,

I use :
Eclipse Modeling Tools 1.2.1.20090918-0703
Eclipse Platform 3.5.1.M20090917-0800
UML2 Tools SDK (Incubation) 0.9.0.v200906190654

and I Have exactly the same problem.

I don't understand Sergey answer. Is there a way to display something (name, guard, label or whatever...) on transitions arrows in state diagram ?

Is it a future functionnality ?

When I select an arrow, and type a text, it disappears at once when I click "Enter".

The way to do it is to create a "Text" and position it next to the arrow, but it's not linked to the arrow.
Re: Transition labels in state diagram not displayed [message #625131 is a reply to message #624909] Tue, 03 November 2009 17:11 Go to previous messageGo to next message
Johan  is currently offline Johan Friend
Messages: 39
Registered: July 2009
Member
Hi,

I interpret Sergeys answer:

According UML specification: "Notation for a transition is defined by the
following BNF expression: <transition> ::= [<trigger> [',' <trigger>]* ['['
<guard-constraint>']'] ['/' <behavior-expression>]]"

as the UML specification says that a transition can be defined as zero, one or many triggers, followed by an optional guard constraint, followed by an optional behaviour expression.

If this is correct, then this means that the UML specification does not allow the name to be visible on the transition arrow in the diagram.

But I don't know this as a fact, this but it is my understanding of Sergeys answer above.

/Johan
Re: Transition labels in state diagram not displayed [message #625158 is a reply to message #476570] Thu, 12 November 2009 09:13 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: November 2009
Junior Member
Sergey Gribovsky wrote on Tue, 30 June 2009 07:38
> Hi Jens,
>
> According UML specification: "Notation for a transition is defined by the
> following BNF expression: <transition> ::= [<trigger> [',' <trigger>]* ['['
> <guard-constraint>']'] ['/' <behavior-expression>]]"
>
> So, the notation doesn't contain name of transition.
>
> Best regards,
> Sergey.


Nevertheless the very first UML tutorial, linked from OMG's own uml.org site shows transition labels:
http://edn.embarcadero.com/article/31863#statechart-diagrams



Obviously, so should eclipse.
Re: Transition labels in state diagram not displayed [message #625500 is a reply to message #476563] Wed, 24 February 2010 18:37 Go to previous messageGo to next message
Bruno Bieth is currently offline Bruno BiethFriend
Messages: 2
Registered: February 2010
Junior Member
Yes, this is annoying for people who just want to create those diagram for documentation purpose only.
Re: Transition labels in state diagram not displayed [message #625584 is a reply to message #625500] Sat, 13 March 2010 11:22 Go to previous messageGo to next message
Satyagraha 1956 is currently offline Satyagraha 1956Friend
Messages: 8
Registered: January 2010
Junior Member
The above discussion suggests it ought to be possible to use a trigger as a substitute for the name as it should display.

So, what I did was:
- Activate context menu for a state transition
- Select Show Properties View
- Click the Show Advanced Properties icon on the right
- Scroll down and select the Trigger entry
- Press the [...] button on the right
- A new Trigger - <Transition> dialog appears

However its Choices panel is empty, with no immediately obvious way to change that.

So, how can I (non-programmatically) create Triggers for this field?

Thanks for any input :)
Re: Transition labels in state diagram not displayed [message #625585 is a reply to message #625584] Sat, 13 March 2010 19:41 Go to previous messageGo to next message
Nick  is currently offline Nick Friend
Messages: 18
Registered: March 2010
Junior Member
I haven't tried this in eclipse, but I think it used to work in ArgoUML...

Try typing the text right on the arrow as you normally would, and begin it with a forward slash. This might trick the editor as treating your label as a behavior expression.

Not sure if it will work (I don't have eclipse installed on the machine I'm posting from) but it might be worth a shot.
Re: Transition labels in state diagram not displayed [message #633830 is a reply to message #624508] Tue, 19 October 2010 14:36 Go to previous message
Chris  is currently offline Chris Friend
Messages: 1
Registered: October 2010
Junior Member
Quote:
So, the notation doesn't contain name of transition.


Nevertheless, if you context-click on a transition, and go Filters > Show/Hide connector labels, you can choose 'all connector labels' or 'no connector labels'. So it would seem this option is meant to be included. However, it doesn't seem to do anything at the moment and labels are not displayed.

I second that it would be very useful. I am trying to use UML to visualize a problem that I have, not to generate code.

This 'bug' is being worked on in Papyrus, at least:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=290237
Previous Topic:delete a tool
Next Topic:applyprofile
Goto Forum:
  


Current Time: Sat Dec 21 17:19:37 GMT 2024

Powered by FUDForum. Page generated in 0.06850 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top