[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sun Dec 19 11:50:00 UTC 2004


CVS commit by okellogg: 

Implement <UML:Dependency>.


  M +9 -1      association.cpp   1.61


--- kdesdk/umbrello/umbrello/association.cpp  #1.60:1.61
@@ -138,5 +138,6 @@ bool UMLAssociation::assocTypeHasUMLRepr
                 atype == Uml::at_Aggregation ||
                 atype == Uml::at_Relationship ||
-                atype == Uml::at_Composition);
+                atype == Uml::at_Composition ||
+                atype == Uml::at_Dependency);
 }
 
@@ -166,4 +167,11 @@ void UMLAssociation::saveToXMI( QDomDocu
                 return;
         }
+        if (m_AssocType == Uml::at_Dependency) {
+                QDomElement assocElement = UMLObject::save("UML:Dependency", qDoc);
+                assocElement.setAttribute( "client", ID2STR(getObjectId(A)) );
+                assocElement.setAttribute( "supplier", ID2STR(getObjectId(B)) );
+                qElement.appendChild( assocElement );
+                return;
+        }
         QDomElement associationElement = UMLObject::save("UML:Association", qDoc);
         QDomElement connElement = qDoc.createElement("UML:Association.connection");






More information about the umbrello-devel mailing list