svn commit: r13530 - trunk/src/model/src/org/argouml/model

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-09-10 23:07:38-0700
New Revision: 13530

Modified:
   trunk/src/model/src/org/argouml/model/DummyModelCommand.java
   trunk/src/model/src/org/argouml/model/Model.java
   trunk/src/model/src/org/argouml/model/ModelCommand.java
   trunk/src/model/src/org/argouml/model/ModelCommandCreationObserver.java

Log:
Remove obsolete references to mementos from Javadoc and variable names.

Modified: trunk/src/model/src/org/argouml/model/DummyModelCommand.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/model/src/org/argouml/model/DummyModelCommand.java?view=diff&rev=13530&p1=trunk/src/model/src/org/argouml/model/DummyModelCommand.java&p2=trunk/src/model/src/org/argouml/model/DummyModelCommand.java&r1=13529&r2=13530
==============================================================================
--- trunk/src/model/src/org/argouml/model/DummyModelCommand.java	(original)
+++ trunk/src/model/src/org/argouml/model/DummyModelCommand.java	2007-09-10 23:07:38-0700
@@ -26,10 +26,10 @@
 
 /**
  * Dummy commands are created where we haven't yet designed the correct
- * memento for undoing an operation. It acts as a marker of work to be done
+ * command for undoing an operation. It acts as a marker of work to be done
  * to complete the Undo implementation.
  * It also allows the save action to enable at the correct time. If there
- * is no memento generated and fired back to the main application then
+ * is no command generated and fired back to the main application then
  * the save action will not enable.
  * @author Bob Tarling
  */

Modified: trunk/src/model/src/org/argouml/model/Model.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/model/src/org/argouml/model/Model.java?view=diff&rev=13530&p1=trunk/src/model/src/org/argouml/model/Model.java&p2=trunk/src/model/src/org/argouml/model/Model.java&r1=13529&r2=13530
==============================================================================
--- trunk/src/model/src/org/argouml/model/Model.java	(original)
+++ trunk/src/model/src/org/argouml/model/Model.java	2007-09-10 23:07:38-0700
@@ -532,9 +532,9 @@
     }
 
     /**
-     * Allows an external system to register itself to recieve commands
+     * Allows an external system to register itself to receive commands
      * created by the model implementation.
-     * @see {@link ModelMemento}
+     * @see {@link ModelCommand}
      *
      * @param observer the interested party
      */
@@ -553,8 +553,8 @@
     }
 
     /**
-     * Gets the external class responsible for handling mementos.
-     * @return the MementoCreationObserver
+     * Gets the external class responsible for handling commands.
+     * @return the observer
      */
     public static ModelCommandCreationObserver
     getModelCommandCreationObserver() {
@@ -576,8 +576,8 @@
     }
 
     /**
-     * Notify any observer that a memento has been created and execute
-     * that command.
+     * Notify any observer that a command has been created and execute
+     * that it.
      * @param command The newly created command.
      * @return the reulting object from the command
      */

Modified: trunk/src/model/src/org/argouml/model/ModelCommand.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/model/src/org/argouml/model/ModelCommand.java?view=diff&rev=13530&p1=trunk/src/model/src/org/argouml/model/ModelCommand.java&p2=trunk/src/model/src/org/argouml/model/ModelCommand.java&r1=13529&r2=13530
==============================================================================
--- trunk/src/model/src/org/argouml/model/ModelCommand.java	(original)
+++ trunk/src/model/src/org/argouml/model/ModelCommand.java	2007-09-10 23:07:38-0700
@@ -35,25 +35,27 @@
 public abstract class ModelCommand {
 
     /**
-     * The method to execute this memento.
+     * Execute this command.
      * @return any result generated by this command
      */
     public abstract Object execute();
 
     /**
-     * Determine of the command can be undone
+     * Determine whether the command can be undone.
+     * 
      * @return true if the command can be undone
      */
     public abstract boolean isUndoable();
 
     /**
-     * Determine of the command can be redone once undone
+     * Determine whether the command can be redone once undone.
+     * 
      * @return true if the command can be redone
      */
     public abstract boolean isRedoable();
 
     /**
-     * The method to undo this memento.
+     * Undo this command.
      */
     public abstract void undo();
 }

Modified: trunk/src/model/src/org/argouml/model/ModelCommandCreationObserver.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/model/src/org/argouml/model/ModelCommandCreationObserver.java?view=diff&rev=13530&p1=trunk/src/model/src/org/argouml/model/ModelCommandCreationObserver.java&p2=trunk/src/model/src/org/argouml/model/ModelCommandCreationObserver.java&r1=13529&r2=13530
==============================================================================
--- trunk/src/model/src/org/argouml/model/ModelCommandCreationObserver.java	(original)
+++ trunk/src/model/src/org/argouml/model/ModelCommandCreationObserver.java	2007-09-10 23:07:38-0700
@@ -33,9 +33,9 @@
 public interface ModelCommandCreationObserver {
     
     /**
-     * Called whenever a memento is created by the model subsystem
+     * Called whenever a command is created by the model subsystem
      * to execute it and store it for undo
-     * @param command the memento.
+     * @param command the command.
      */
     Object execute(ModelCommand command);
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.