[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Dec 19 22:58:00 UTC 2004
CVS commit by okellogg:
Comment by M. Alanen 2004-12-19 (see bugs.kde.org/56184):
Packages (and thus also UML:Model) lacks [see Classes]
Classes lack:
- isAbstract="false"
- isLeaf="false"
- isRoot="false"
- isSpecification="false"
M +4 -0 umldoc.cpp 1.219
M +4 -3 umlobject.cpp 1.62
--- kdesdk/umbrello/umbrello/umlobject.cpp #1.61:1.62
@@ -423,5 +423,7 @@ QDomElement UMLObject::save( const QStri
*/
QDomElement qElement = qDoc.createElement(tag);
-
+ qElement.setAttribute( "isLeaf", "false" );
+ qElement.setAttribute( "isRoot", "false" );
+ qElement.setAttribute( "isSpecification", "false" );
qElement.setAttribute( "xmi.id", ID2STR(m_nId) );
if (!m_Name.isEmpty())
@@ -448,7 +450,6 @@ QDomElement UMLObject::save( const QStri
if (m_bAbstract)
qElement.setAttribute( "isAbstract", "true" );
- /* else
+ else
qElement.setAttribute( "isAbstract", "false" );
- *** isAbstract defaults to false if not set **********/
if (m_bStatic)
qElement.setAttribute( "ownerScope", "classifier" );
--- kdesdk/umbrello/umbrello/umldoc.cpp #1.218:1.219
@@ -1813,4 +1813,8 @@ void UMLDoc::saveToXMI(QIODevice& file)
QDomElement objectsElement = doc.createElement( "UML:Model" );
+ objectsElement.setAttribute( "isSpecification", "false" );
+ objectsElement.setAttribute( "isAbstract", "false" );
+ objectsElement.setAttribute( "isRoot", "false" );
+ objectsElement.setAttribute( "isLeaf", "false" );
QDomElement ownedNS = doc.createElement( "UML:Namespace.ownedElement" );
More information about the umbrello-devel
mailing list