[Uml-devel] [Bug 56184] Umbrello XMI file format doesn't conform with uml13.dtd
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Dec 23 15:11:21 UTC 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=56184
------- Additional Comments From okellogg users sourceforge net 2006-12-23 16:11 -------
SVN commit 616054 by okellogg:
Further fixes for loading Poseidon 4.1 xmi, e.g.
http://uml2svg.sourceforge.net/samples/CoffeeMachine.xmi
CCBUG:56184
M +6 -3 classifier.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/classifier.cpp #616053:616054
@ -877,8 +877,10 @
tagEq(tag, "Classifier.feature") ||
tagEq(tag, "Namespace.ownedElement") ||
tagEq(tag, "Namespace.contents")) {
- if (! load(element))
- return false;
+ load(element);
+ // Not evaluating the return value from load()
+ // because we want a best effort.
+
} else if ((child = makeChildObject(tag)) != NULL) {
if (child->loadFromXMI(element)) {
switch (child->getBaseType()) {
@ -908,7 +910,8 @
UMLDoc *umldoc = UMLApp::app()->getDocument();
UMLObject *pObject = Object_Factory::makeObjectFromXMI(tag);
if (pObject == NULL) {
- totalSuccess = false;
+ // Not setting totalSuccess to false
+ // because we want a best effort.
continue;
}
pObject->setUMLPackage(this);
More information about the umbrello-devel
mailing list