ptolemy.kernel.undo
Class UndoStackAttribute.MergeUndoActions

java.lang.Object
  extended by ptolemy.kernel.undo.UndoStackAttribute.MergeUndoActions
All Implemented Interfaces:
UndoAction
Enclosing class:
UndoStackAttribute

private static class UndoStackAttribute.MergeUndoActions
extends java.lang.Object
implements UndoAction

An undo or redo action on the stack.


Field Summary
private  UndoAction _firstAction
           
private  UndoAction _secondAction
           
 
Constructor Summary
UndoStackAttribute.MergeUndoActions(UndoAction firstAction, UndoAction secondAction)
          Create an undo action from two actions.
 
Method Summary
 void execute()
          Execute the action.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_firstAction

private UndoAction _firstAction

_secondAction

private UndoAction _secondAction
Constructor Detail

UndoStackAttribute.MergeUndoActions

public UndoStackAttribute.MergeUndoActions(UndoAction firstAction,
                                           UndoAction secondAction)
Create an undo action from two actions.

Method Detail

execute

public void execute()
             throws java.lang.Exception
Execute the action.

Specified by:
execute in interface UndoAction
Throws:
java.lang.Exception - If something goes wrong.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object