svn commit: r19196 - trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: thn
Date: 2011-04-05 10:56:56-0700
New Revision: 19196

Modified:
   trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java

Log:
fix for issue 6061: Dragging classes to diagram doesn't draw association

Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java?view=diff&pathrev=19196&r1=19195&r2=19196
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java	(original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java	2011-04-05 10:56:56-0700
@@ -218,11 +218,18 @@
                     "handle must be instance of Classifier"); //$NON-NLS-1$
         }
         Collection<Property> result = new ArrayList<Property>();
+        // TODO: seems to work only with both loops, check why.
         for (Property p : ((Classifier) handle).getAttributes()) {
             if (p.getAssociation() != null) {
                 result.add(p);
             }
         }
+        for (Association a : ((Classifier) handle).getAssociations()) {
+            Property p = getAssociationEnd(handle, a);
+            if (p != null) {
+                result.add(p);
+            }
+        }
         return result;
     }

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2717231

To unsubscribe from this discussion, e-mail: [[email protected]].
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.