Package org.opensourcephysics.tools
Class LauncherUndo.LoadEdit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
org.opensourcephysics.tools.LauncherUndo.LoadEdit
- All Implemented Interfaces:
Serializable,UndoableEdit
- Enclosing class:
- LauncherUndo
A class to undo/redo a node link, open file or new tabset action.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
Constructor Details
-
LoadEdit
Constructor specifies new file and node. Prev file and node are determined from current launcher state.- Parameters:
newArgs- [0] new file name, [1] new tab and node nameprevArgs- [0] prev file name, [1] prev tab and node name
-
-
Method Details
-
undo
- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit- Throws:
CannotUndoException
-
redo
- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit- Throws:
CannotUndoException
-
getPresentationName
- Specified by:
getPresentationNamein interfaceUndoableEdit- Overrides:
getPresentationNamein classAbstractUndoableEdit
-