[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sun Oct 1 15:45:35 UTC 2006


SVN commit 591056 by okellogg:

Set to work with the new root folder logic in UMLDoc.

 M  +5 -0      petaltree2uml.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/petaltree2uml.cpp #591055:591056
@@ -580,6 +580,7 @@
     }
     UMLDoc *umldoc = UMLApp::app()->getDocument();
     umldoc->determineNativity("Certainly Not Native At All");
+    umldoc->setCurrentRoot(Uml::mt_Logical);
     Import_Utils::assignUniqueIdOnCreation(false);
     PetalNode::NameValueList atts = logical_models->attributes();
     for (uint i = 0; i < atts.count(); i++) {
@@ -590,15 +591,19 @@
     UMLListView *lv = UMLApp::app()->getListView();
 
     /*************************** import Use Case View ********************************/
+    umldoc->setCurrentRoot(Uml::mt_UseCase);
     importView(root, "root_usecase_package", "logical_models", lv->theUseCaseView());
 
     /*************************** import Component View *******************************/
+    umldoc->setCurrentRoot(Uml::mt_Component);
     importView(root, "root_subsystem", "physical_models", lv->theComponentView());
 
     /*************************** import Deployment View ******************************/
+    umldoc->setCurrentRoot(Uml::mt_Deployment);
     importView(root, "process_structure", "ProcsNDevs", lv->theDeploymentView());
 
     /***************************       wrap up        ********************************/
+    umldoc->setCurrentRoot(Uml::mt_Logical);
     Import_Utils::assignUniqueIdOnCreation(true);
     umldoc->resolveTypes();
     return true;




More information about the umbrello-devel mailing list