Stateflow |
 |
Undoing and Redoing Editor Operations
You can undo and redo operations you perform in the Stateflow diagram editor. When you undo an operation in the Stateflow diagram editor, you reverse the last edit operation you performed. After you undo operations in the diagram editor, you can also redo them one at a time.
To undo an operation in the Stateflow diagram editor, do one of the following:
- Select the Undo icon in the toolbar of the Stateflow diagram editor
.
- When you place your mouse cursor over the Undo button, the tool tip that appears indicates the nature of the operation to undo.
- From the Edit menu, select Undo.
To redo an operation in the Stateflow diagram editor, do one of the following:
- Select the Redo icon in the toolbar of the Stateflow diagram editor
.
- When you place your mouse cursor over the Redo button, the tool tip that appears indicates the nature of the operation to redo.
- From the Edit menu, select Redo.
Exceptions for Undo
You can undo or redo all diagram editor operations, with the following exceptions:
- You cannot undo the operation of turning subcharting off for a state previously subcharted.
- You cannot undo the drawing of a supertransition or the splitting of an existing transition.
- Splitting of an existing transition refers to the redirection of the source or destination of a transition segment that is part of a supertransition. For a description of supertransitions, see Drawing a Supertransition.
- You cannot undo any changes made to the diagram editor through the Stateflow API.
Caution
When you perform one of the preceding operations, the undo and redo buttons are disabled from undoing and redoing any prior operations.
|
| Zooming a Diagram | | Using States in Stateflow Charts |  |