[umbrello-devel] [umbrello] [Bug 56184] Support loading of foreign XMI file formats

Oliver Kellogg okellogg at users.sourceforge.net
Sun Apr 20 21:34:47 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=56184

--- Comment #63 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
Git commit c0d58b3b691dba2fd3442a34be922d6cad758eb1 by Oliver Kellogg.
Committed on 20/04/2014 at 21:35.
Pushed by okellogg into branch 'master'.

Initial work on loading UML2/XMI2 files, e.g.
  https://bugs.kde.org/attachment.cgi?id=86180 (Eclipse UML2)
and
  http://www.omg.org/spec/UML/20110701/Infrastructure.xmi

umbrello/model_utils.{h,cpp}
- New function getXmiId(QDomElement) encapsulates access to xmi.id (XMI-1)
  and xmi:id (XMI-2)

umbrello/{umlobject,folder,operation}.cpp
- Replace direct accesses to QDomElement::attribute("xmi.id") by
  Model_Utils::getXmiId()

umbrello/{folder,package}.cpp
- In function load(QDomElement&), decode UML2 tags packagedElement and
  ownedElement.

umbrello/umldoc.cpp
- In function loadFromXMI(QIODevice&, short), decode outerTag values
  "Model" and "Package" for UML2;
- In function loadUMLObjectsFromXMI(QDomElement&),
  - decode UML2 tags packagedElement and ownedElement;
  - admit XMI2 syntax "xmi:id" to the check for xmi.id presence.

umbrello/classifier.cpp
- In function makeChildObject(const QString&), support UML2 tags
  ownedOperation and ownedAttribute.

M  +4    -2    umbrello/classifier.cpp
M  +4    -1    umbrello/folder.cpp
M  +13   -2    umbrello/model_utils.cpp
M  +2    -1    umbrello/model_utils.h
M  +4    -3    umbrello/operation.cpp
M  +3    -0    umbrello/package.cpp
M  +15   -1    umbrello/umldoc.cpp
M  +1    -1    umbrello/umlobject.cpp

http://commits.kde.org/umbrello/c0d58b3b691dba2fd3442a34be922d6cad758eb1

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list