The ModelRecorder is an object used for recording model changes (transactions)
and enabling undo/redo functionality.<q ref="core.gml:Object">Object</q>Instances of this class are created automatically by the system, and should
not be created directly. To access the ModelRecorder object of the currently
open model use the <q ref="core.env:Environment!recorder">$ENV.recorder</q> property.(c) SAP AG 2003-2006. All rights reserved.
Begins a new recording.A display name to assign to the recording.An object representing a snapshot of the current window at its last stable state prior to the recording (see <q ref="core.dev:Workspace!captureSnapshot">captureSnapshot</q>). If omitted, the snapshot of the window at the exact moment that the recording has began will be used.<ol><li>A transactions recording is a sequence of one or more transactions that are undone or redone in a single scope. </li><li>Once a recording has been started, you can use the <code>add</code> method to add new transactions to it. </li><li>As soon as you are done with the actions that constitute your scope you should call the <code>commit</code> resp. <code>rollback</code> method to accept resp. cancel the recording. </li><li>You must balance calls to the <code>begin</code> method with calls to the <code>commit</code> method. Nested calls to the <code>begin</code> method are merged, so at most a single recording is active at any time. </li></ol>
Indicates whether the recorder is at the beginning (i.e., there is nothing to undo).Returns the test result.
Accepts the current recording.An object representing a snapshot of the current window at its next stable state after the recording. If omitted, the snapshot taken at the beginning of the recording will be used.
Indicates whether the recorder is at the end (i.e., there is nothing to redo).Returns the test result.
Executes a new transaction and appends it to the current recording.The transaction type Id (see <q ref="core.env:KitTransactions!TRANSACTION_TYPE">TRANSACTION_TYPE</q>).A variable-length arguments list to pass to the transaction constructor.The transaction object, or null in case of any error.If there is no current recording, a new recording containing the given transaction will be automatically
created.
Gets the recorder busy state.<code>true</code> if the recorder is in the middle of an undo, redo or rollback operation, <code>false</code> otherwise.
Gets the recorder stamp.The recorder stamp.
Gets the recorder state.The recorder state.
Reapplies the first recording in the future, if any.
Cancels the current recording.
Reverses the last recording in the past, if any.