Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't figure out how to label a transition (arrow) in a UML Statechart. With most items, I just start typing, but with the transition it says:

Shape protection and/or layer properties prevent complete execution of this command.

I found Format -> Protection and unchecked the "Text" check box, and now I can start typing, but the text just goes away when I finish. What's up with that?

One thing that sort of works is a "Guard expression", but I don't think that's quite what I want. Unlike this MSDN example, it has awkward square brackets around it. Is there any way to get a normal-looking label for transitions?

share|improve this question
up vote 4 down vote accepted

Double click on the transition to bring up the transition properties dialogue. Create an Event (the event button), Create a new Event. Back in the UML Transitions Properties dialogue select your new event from the Event: drop down. it'll now show up as a label. Painful isn't it

share|improve this answer
    
Nice! Thanks for the help. Not the easiest way of doing things, but at least it's possible. – jtpereyda Jul 13 '11 at 19:38
    
To add onto this: when you add an event and click "New..." a Signal Event lets you type whatever you want for the label. Unlike the other events that require you to pick some operation – MattSayar Dec 15 '14 at 19:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .