svn commit: r16409 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEdgeAssociationClass.java

Bob Tarling <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2008-12-21 17:02:00-0800
New Revision: 16409

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEdgeAssociationClass.java

Log:
The source of a dashed association class link could be a diamond association node

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEdgeAssociationClass.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEdgeAssociationClass.java?view=diff&pathrev=16409&r1=16408&r2=16409
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEdgeAssociationClass.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigEdgeAssociationClass.java	2008-12-21 17:02:00-0800
@@ -177,7 +177,7 @@
     public void setDestFigNode(FigNode fn) {
         if (!(fn instanceof FigClassAssociationClass)) {
             throw new IllegalArgumentException(
-                    "The source of a association class dashed link can "
+                    "The dest of an association class dashed link can "
                     + "only be a FigClassAssociationClass");
         }
         super.setDestFigNode(fn);
@@ -185,9 +185,9 @@
 
     @Override
     public void setSourceFigNode(FigNode fn) {
-        if (!(fn instanceof FigEdgePort)) {
+        if (!(fn instanceof FigEdgePort || fn instanceof FigNodeAssociation)) {
             throw new IllegalArgumentException(
-                    "The source of a association class dashed link can "
+                    "The source of an association class dashed link can "
                     + "only be a FigEdgePort");
         }
         super.setSourceFigNode(fn);

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

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.