svn commit: r12953 - trunk/src_new/org/argouml/cognitive/ItemUID.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2007-07-01 11:40:28-0700
New Revision: 12953

Modified:
   trunk/src_new/org/argouml/cognitive/ItemUID.java

Log:
Make the test work with a CommentEdge, too.

It still fails with diagrams...

Modified: trunk/src_new/org/argouml/cognitive/ItemUID.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/cognitive/ItemUID.java?view=diff&rev=12953&p1=trunk/src_new/org/argouml/cognitive/ItemUID.java&p2=trunk/src_new/org/argouml/cognitive/ItemUID.java&r1=12952&r2=12953
==============================================================================
--- trunk/src_new/org/argouml/cognitive/ItemUID.java	(original)
+++ trunk/src_new/org/argouml/cognitive/ItemUID.java	2007-07-01 11:40:28-0700
@@ -29,6 +29,7 @@
 
 import org.apache.log4j.Logger;
 import org.argouml.model.Model;
+import org.argouml.uml.CommentEdge;
 import org.argouml.uml.UUIDHelper;
 
 /**
@@ -157,7 +158,8 @@
      * @return	The ID of the object, or null.
      */
     protected static String readObjectID(Object obj) {
-        if (Model.getFacade().isAUMLElement(obj)) {
+        if (Model.getFacade().isAUMLElement(obj) 
+                || (obj instanceof CommentEdge)) {
             return UUIDHelper.getUUID(obj);
         }
 	/*
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.