Package ptolemy.kernel.undo.test
Class UndoActionTest
- java.lang.Object
-
- ptolemy.kernel.undo.test.UndoActionTest
-
- All Implemented Interfaces:
UndoAction
public class UndoActionTest extends java.lang.Object implements UndoAction
Test of UndoActin, an interface represents an undo or redo action that is maintained on an undo/redo stack, such as that maintained by UndoStackAttribute.- Since:
- Ptolemy II 5.2
- Version:
- $Id$
- Author:
- Christopher Brooks
- See Also:
UndoStackAttribute
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Constructor Summary
Constructors Constructor Description UndoActionTest(java.lang.String name)
Create a UndoActionTest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Execute the undo or redo action by printing the name on stdout.java.lang.String
toString()
Return a string representation of this object.
-
-
-
Method Detail
-
execute
public void execute() throws java.lang.Exception
Execute the undo or redo action by printing the name on stdout.- Specified by:
execute
in interfaceUndoAction
- Throws:
java.lang.Exception
- If something goes wrong.
-
toString
public java.lang.String toString()
Return a string representation of this object.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The name of the class and the name of this object
-
-