Reverse state machine code
If you have a state machine definition (.sm) and you want to visualize the state machine with a UML state machine diagram, you can make use of the reverse function to produce the class and state diagram essential to visually represent the definition.
To reverse state machine definition (.sm):
1. Select Tools > Code > Reverse State Machine Code... from the toolbar.
2. Specify the class, state diagram and the .sm file in the input field. Click OK to continue.