svn commit: r13516 - trunk/src_new/org/argouml/kernel/ProjectManager.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2007-09-09 03:36:23-0700
New Revision: 13516

Modified:
   trunk/src_new/org/argouml/kernel/ProjectManager.java

Log:
Sme command need to return a result to their creator.

Not all MDR commands are redoable.

Modified: trunk/src_new/org/argouml/kernel/ProjectManager.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/kernel/ProjectManager.java?view=diff&rev=13516&p1=trunk/src_new/org/argouml/kernel/ProjectManager.java&p2=trunk/src_new/org/argouml/kernel/ProjectManager.java&r1=13515&r2=13516
==============================================================================
--- trunk/src_new/org/argouml/kernel/ProjectManager.java	(original)
+++ trunk/src_new/org/argouml/kernel/ProjectManager.java	2007-09-09 03:36:23-0700
@@ -273,7 +273,8 @@
                 }
             }
         };
-        currentProject.getUndoManager().execute(cmd);
+        cmd.execute();
+        currentProject.getUndoManager().addCommand(cmd);
         return currentProject;
     }
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.