[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sat May 22 09:55:02 UTC 2004


CVS commit by okellogg: 

load{Messages,Associations}FromXMI(): Adapt to new tags.


  M +6 -2      umlview.cpp   1.137


--- kdesdk/umbrello/umbrello/umlview.cpp  #1.136:1.137
@@ -3165,5 +3165,7 @@ bool UMLView::loadMessagesFromXMI( QDomE
         QDomElement messageElement = node.toElement();
         while( !messageElement.isNull() ) {
-                if( messageElement.tagName() == "UML:MessageWidget" ) {
+                QString tag = messageElement.tagName();
+                if (tag == "messagewidget" ||
+                    tag == "UML:MessageWidget" ) {  // for bkwd compatibility
                         message = new MessageWidget(this, sequence_message_asynchronous);
                         if( !message -> loadFromXMI( messageElement ) ) {
@@ -3184,5 +3186,7 @@ bool UMLView::loadAssociationsFromXMI( Q
         int countr = 0;
         while( !assocElement.isNull() ) {
-                if ( assocElement.tagName() == "UML:AssocWidget" ) {
+                QString tag = assocElement.tagName();
+                if (tag == "assocwidget" ||
+                    tag == "UML:AssocWidget") {  // for bkwd compatibility
                         countr++;
                         AssociationWidget *assoc = new AssociationWidget(this);






More information about the umbrello-devel mailing list