[Uml-devel] KDE/kdesdk/umbrello/umbrello/codeimport

Ralf Habacker ralf.habacker at gmail.com
Thu Dec 15 23:01:39 UTC 2011


SVN commit 1268851 by habacker:

use component view for generating artifacts

 M  +2 -2      import_utils.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/codeimport/import_utils.cpp #1268850:1268851
@@ -174,8 +174,8 @@
         if (!Settings::optionState().codeImportState.createArtifacts)
             return 0;
         QFileInfo fi(name);
-        //:TODO: not used? UMLFolder *logicalView = umldoc->rootFolder(Uml::ModelType::Component);
-        UMLObject *o = Object_Factory::createUMLObject(type, fi.fileName(), parentPkg, false);
+        UMLFolder *componentView = umldoc->rootFolder(Uml::ModelType::Component);
+        UMLObject *o = Object_Factory::createUMLObject(type, fi.fileName(), componentView, false);
         UMLArtifact *a = static_cast<UMLArtifact*>(o);
         a->setDrawAsType(UMLArtifact::file);
         a->setDoc(comment);




More information about the umbrello-devel mailing list