com.wirefusion.undo
Class WfUndoManager

java.lang.Object
  extended by com.wirefusion.undo.WfUndoManager

public class WfUndoManager
extends java.lang.Object

Each Project in WireFusion has one instance of this class. It is the main class for managing the undo system.


Method Summary
 boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
          Inserts anEdit if undo or redo is not in progress.
 void endCompound()
          Is called after startCompound() to mark the end of a compound edit.
 void startCompound(java.lang.String compoundName)
          Marks the start of a compound edit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addEdit

public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
Inserts anEdit if undo or redo is not in progress.

Parameters:
anEdit -
Returns:
true if the edit was added (i.e. if undo or redo is not in progress), otherwise false.

startCompound

public void startCompound(java.lang.String compoundName)
Marks the start of a compound edit. Must be followed by endCompound() when the desired edits have been added.

Parameters:
compoundName -

endCompound

public void endCompound()
Is called after startCompound() to mark the end of a compound edit.