 | UndoRedoService Class |
This class implements an Undo and Redo service. When this service is registered, changes in
an AutomationML document can be reversed. A sequence of actions can be grouped into
transactions which than can be reversed within a single undo operation. The AMLEngine will
locate a registered UndoRedoService and will notify the service of any changes, made to a
document. The service manages individual stacks for each loaded CAEX document.
Inheritance Hierarchy Namespace: Aml.Engine.ServicesAssembly: Aml.Engine.Services (in Aml.Engine.Services.dll) Version: 3.2
Syntaxpublic class UndoRedoService : IUndoRedo,
IAMLService, INotifyPropertyChanged, IXMLDocumentRegistry
Public Class UndoRedoService
Implements IUndoRedo, IAMLService, INotifyPropertyChanged, IXMLDocumentRegistry
public ref class UndoRedoService : IUndoRedo,
IAMLService, INotifyPropertyChanged, IXMLDocumentRegistry
The UndoRedoService type exposes the following members.
Methods | Name | Description |
---|
 | BeginTransaction |
Begins a new transaction. All changes, made to a CAEXDocument inside a transaction are
treated as a single operation.
|
 | CanRedo |
Determines, if the service can redo a command
|
 | CanUndo |
Determines, if the service can undo a command.
|
 | ClearStacks |
Clears the stacks, managed for the specified document.
|
 | EndTransaction |
Ends the current transaction from the specified document.
|
 | LastModificationDate |
Gets the date of the most recently executed command for the specified document.
|
 | Pause |
Request to not record changes of the specified document.
|
 | PushCommand |
A command is pushed on the undo stack of this service.
|
 | Redo |
Executes the last undone operation from the specified document again.
|
 | RedoActions |
Gets the command names of all redo actions for the defined document.
|
  | Register |
Registers a new instance of a UndoRedoService with the ServiceLocator of
the AMLEngine.
|
 | RemoveDocument |
Removes the XML document from the internal registry of the service. Undo- and Redo
Stacks for this document will be deleted.
|
 | Resume |
Request to resume recording changes of the specified document.
|
 | Undo |
Reverses the last action of the defined document.
|
 | UndoActions |
Gets the command names of all undo actions of the defined document.
|
  | UnRegister |
Unregisters this service
|
Top
Events
See Also