edu.rice.cs.drjava.model.definitions
Class DefinitionsDocument.CommandUndoableEdit

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by edu.rice.cs.drjava.model.definitions.DefinitionsDocument.CommandUndoableEdit
All Implemented Interfaces:
Serializable, UndoableEdit
Enclosing class:
DefinitionsDocument

private static class DefinitionsDocument.CommandUndoableEdit
extends AbstractUndoableEdit

Appending any information for the reduced model from each undo command


Field Summary
private  Runnable _redoCommand
           
private  Runnable _undoCommand
           
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
DefinitionsDocument.CommandUndoableEdit(Runnable undoCommand, Runnable redoCommand)
           
 
Method Summary
 boolean isSignificant()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, replaceEdit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_undoCommand

private final Runnable _undoCommand

_redoCommand

private final Runnable _redoCommand
Constructor Detail

DefinitionsDocument.CommandUndoableEdit

public DefinitionsDocument.CommandUndoableEdit(Runnable undoCommand,
                                               Runnable redoCommand)
Method Detail

undo

public void undo()
          throws CannotUndoException
Specified by:
undo in interface UndoableEdit
Overrides:
undo in class AbstractUndoableEdit
Throws:
CannotUndoException

redo

public void redo()
          throws CannotRedoException
Specified by:
redo in interface UndoableEdit
Overrides:
redo in class AbstractUndoableEdit
Throws:
CannotRedoException

isSignificant

public boolean isSignificant()
Specified by:
isSignificant in interface UndoableEdit
Overrides:
isSignificant in class AbstractUndoableEdit