svn commit: r13527 - trunk/src_new/org/argouml/kernel/UndoManager.java
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: tfmorris
Date: 2007-09-10 23:04:44-0700
New Revision: 13527
Modified:
trunk/src_new/org/argouml/kernel/UndoManager.java
Log:
Add missing execute method to interface. Update Javadoc.
Modified: trunk/src_new/org/argouml/kernel/UndoManager.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/kernel/UndoManager.java?view=diff&rev=13527&p1=trunk/src_new/org/argouml/kernel/UndoManager.java&p2=trunk/src_new/org/argouml/kernel/UndoManager.java&r1=13526&r2=13527
==============================================================================
--- trunk/src_new/org/argouml/kernel/UndoManager.java (original)
+++ trunk/src_new/org/argouml/kernel/UndoManager.java 2007-09-10 23:04:44-0700
@@ -44,7 +44,8 @@
public abstract void addCommand(Command command);
/**
- * Executes a command and add it to the undo stack.
+ * Execute a command and add it to the undo stack.
+ *
* @param command the command.
* @return any resulting object the command creates
*/
@@ -58,34 +59,36 @@
/**
* Undo the top user interaction on the undo stack and move
- * it to the redo stack
+ * it to the redo stack.
*/
public abstract void undo();
/**
* Redo the top user interaction on the redo stack and move
- * it to the undo stack
+ * it to the undo stack.
*/
public abstract void redo();
/**
* Instructs the UndoManager that a new user interaction is about to take
- * place. All commands received until the next call to startInteraction
- * will form a single undoable unit.
+ * place. All commands received until the next call to startInteraction will
+ * form a single undoable unit.
+ *
* @param label the label for this interaction to build the undo/redo label
*/
public abstract void startInteraction(String label);
/**
- * Allow a listener to detect when the undo or redo stack
- * changes availability
+ * Add a new PropertyChangeListener for undo/redo events. Allow a listener
+ * to detect when the undo or redo stack changes availability.
+ *
* @param listener a PropertyChangeListener
*/
public abstract void addPropertyChangeListener(
PropertyChangeListener listener);
/**
- * Remove the listener
+ * Remove the given listener.
* @param listener a PropertyChangeListener
*/
public abstract void removePropertyChangeListener(