How to hide empty elements of a state?

+1 vote
asked Jul 2, 2013 in Wanted features by Fuhrmanator (1,700 points)
edited Jul 2, 2013 by Fuhrmanator

Class diagrams support the "hide empty methods" etc. options. I'm looking for a similar option in a state diagram, such that I don't see the lower part of a state if it's empty. I'm posting this as a wanted feature, but it's almost a bug since one could expect it to work the same for states. wink

Cheers! 

1 Answer

+2 votes
answered Jul 3, 2013 by plantuml (295,000 points)
selected Jul 4, 2013 by Fuhrmanator
 
Best answer

Hello,

In version 7971, we have implemented this:

@startuml
hide empty description
state Foo1
state Foo2
Foo2 : comment
@enduml

Is it what you are expecting ?

Regards,

commented Jul 4, 2013 by Fuhrmanator (1,700 points)
thanks again for the quick response!
...