Package editor
Class ScriptEditorUndoItem
- java.lang.Object
-
- editor.ScriptEditorUndoItem
-
- All Implemented Interfaces:
IStagedStateEditable,javax.swing.undo.StateEditable
public class ScriptEditorUndoItem extends java.lang.Object implements IStagedStateEditable
-
-
Constructor Summary
Constructors Constructor Description ScriptEditorUndoItem(ScriptChangeHandler sch, javax.swing.undo.UndoableEdit docEdit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanprepareForRedo()booleanprepareForUndo()voidrestoreState(java.util.Hashtable stateTable)voidstoreState(java.util.Hashtable stateTable)
-
-
-
Field Detail
-
_sch
private ScriptChangeHandler _sch
-
_bUndo
private boolean _bUndo
-
_iUndoPos
private int _iUndoPos
-
_iRedoPos
private int _iRedoPos
-
_docEdit
private javax.swing.undo.UndoableEdit _docEdit
-
-
Constructor Detail
-
ScriptEditorUndoItem
public ScriptEditorUndoItem(ScriptChangeHandler sch, javax.swing.undo.UndoableEdit docEdit)
- Parameters:
sch- The ScriptChangeHandler context.docEdit- The source of the change.
-
-
Method Detail
-
storeState
public void storeState(java.util.Hashtable stateTable)
- Specified by:
storeStatein interfacejavax.swing.undo.StateEditable
-
restoreState
public void restoreState(java.util.Hashtable stateTable)
- Specified by:
restoreStatein interfacejavax.swing.undo.StateEditable
-
prepareForUndo
public boolean prepareForUndo()
- Specified by:
prepareForUndoin interfaceIStagedStateEditable
-
prepareForRedo
public boolean prepareForRedo()
- Specified by:
prepareForRedoin interfaceIStagedStateEditable
-
-