Package jetbrains.mps.smodel
Class UndoHelper
- java.lang.Object
 - 
- jetbrains.mps.smodel.UndoHelper
 
 
- 
public class UndoHelper extends Object
Gives access to platform-specific UndoHandler collector of model undoable actions. Likely, SRepository shall supply UndoHandler instance for its models, so that we don't really need this singleton at all. Perhaps, accessor could be part of SRepositoryExt or SRepositoryAux if we don't want to mix register functionality with undo. 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddUndoableAction(SNodeUndoableAction action)voidflushCommand()Deprecated.This method is unused, no-op and scheduled for removal, just don't use it any morestatic UndoHelpergetInstance()voidsetUndoHandler(UndoHandler handler)voidstartCommand(UndoContext context)Deprecated.This method is unused, no-op and scheduled for removal, just don't use it any more 
 - 
 
- 
- 
Method Detail
- 
getInstance
public static UndoHelper getInstance()
 
- 
setUndoHandler
public void setUndoHandler(UndoHandler handler)
 
- 
addUndoableAction
public void addUndoableAction(SNodeUndoableAction action)
 
- 
flushCommand
@Deprecated public void flushCommand()
Deprecated.This method is unused, no-op and scheduled for removal, just don't use it any more 
- 
startCommand
@Deprecated public void startCommand(UndoContext context)
Deprecated.This method is unused, no-op and scheduled for removal, just don't use it any more 
 - 
 
 -