Package jetbrains.mps.smodel
Interface UndoHandler
- 
- All Known Implementing Classes:
 DefaultUndoHandler
public interface UndoHandlerA mechanism to have globally-accessible platform-specific UndoHandler implementation. Platform supplies proper UndoHandler instance with a help of UndoHelper singleton. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddUndoableAction(SNodeUndoableAction action)Receives information about a model change in a form suitable for undo. 
 - 
 
- 
- 
Method Detail
- 
addUndoableAction
void addUndoableAction(SNodeUndoableAction action)
Receives information about a model change in a form suitable for undo. It's up to implementation to react, i.e. to use some platform mechanism to record the action, filter based on internal state or even to ignore it altogether.- Parameters:
 action- nevernull
 
 - 
 
 -