Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 3 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. –  Josh P Jul 13 '11 at 19:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.