[Uml-devel] kdesdk/umbrello/umbrello

Brian Thomas thomas at mail630.gsfc.nasa.gov
Mon Feb 9 15:12:32 UTC 2004


CVS commit by thomas: 

bug fix: XMI loading of code operations incorrect, parent_id is not found. Fixed now.


  M +1 -1      codegenobjectwithtextblocks.cpp   1.12
  M +1 -1      codegenerators/cppheadercodedocument.cpp   1.19
  M +1 -1      codegenerators/javaantcodedocument.cpp   1.10
  M +1 -1      codegenerators/javaclassifiercodedocument.cpp   1.21


--- kdesdk/umbrello/umbrello/codegenobjectwithtextblocks.cpp  #1.11:1.12
@@ -469,5 +469,5 @@ void CodeGenObjectWithTextBlocks::loadCh
                                 if( name == "codeoperation" ) {
                                        // find the code operation by id
-                                        QString id = element.attribute("parent_op","-1");
+                                        QString id = element.attribute("parent_id","-1");
                                         UMLObject * obj = getParentGenerator()->getDocument()->findUMLObject(id.toInt());
                                         UMLOperation * op = dynamic_cast<UMLOperation*>(obj);

--- kdesdk/umbrello/umbrello/codegenerators/cppheadercodedocument.cpp  #1.18:1.19
@@ -157,5 +157,5 @@ void CPPHeaderCodeDocument::loadChildTex
                                 if( name == "codeoperation" ) {
                                        // find the code operation by id
-                                        QString id = element.attribute("parent_op","-1");
+                                        QString id = element.attribute("parent_id","-1");
                                         UMLObject * obj = getParentGenerator()->getDocument()->findUMLObject(id.toInt());
                                         UMLOperation * op = dynamic_cast<UMLOperation*>(obj);

--- kdesdk/umbrello/umbrello/codegenerators/javaantcodedocument.cpp  #1.9:1.10
@@ -146,5 +146,5 @@ void JavaANTCodeDocument::loadChildTextB
                                 if( name == "codeoperation" ) {
                                        // find the code operation by id
-                                        QString id = element.attribute("parent_op","-1");
+                                        QString id = element.attribute("parent_id","-1");
                                         UMLObject * obj = getParentGenerator()->getDocument()->findUMLObject(id.toInt());
                                         UMLOperation * op = dynamic_cast<UMLOperation*>(obj);

--- kdesdk/umbrello/umbrello/codegenerators/javaclassifiercodedocument.cpp  #1.20:1.21
@@ -255,5 +255,5 @@ void JavaClassifierCodeDocument::loadChi
                                 if( name == "codeoperation" ) {
                                        // find the code operation by id
-                                        QString id = element.attribute("parent_op","-1");
+                                        QString id = element.attribute("parent_id","-1");
                                         UMLObject * obj = getParentGenerator()->getDocument()->findUMLObject(id.toInt());
                                         UMLOperation * op = dynamic_cast<UMLOperation*>(obj);






More information about the umbrello-devel mailing list