[umbrello] [Bug 81301] Support UML Profile for CORBA specification
Oliver Kellogg
bugzilla_noreply at kde.org
Thu Jan 14 22:55:59 GMT 2021
https://bugs.kde.org/show_bug.cgi?id=81301
--- Comment #5 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
Git commit 54e6c2d97658302262cebbf843a423f27f23bd72 by Oliver Kellogg.
Committed on 14/01/2021 at 22:55.
Pushed by okellogg into branch 'master'.
Flesh out bounded string / bounded sequence handling in IDL import:
umbrello/codeimport/idlimport.h
- Add member m_doc of type UMLDoc* for conventiently accessing
UMLApp::app()->document().
umbrello/codeimport/idlimport.cpp
- In constructor initialize m_doc.
- In function parseStmt keyword "typedef" handling of template types :
- In case of «idlSequence» create newType as Class instead of as
Datatype. Reason: Umbrello does not currently support the menus and
dialogs for adding/manipulating attributes of UMLDatatype.
- Implement «idlSequence» / «idlString» stereotype attribute "bound"
of type Uml::PrimitiveTypes::UnlimitedNatural.
When applying «idlSequence», if the concrete tag value provided in
UMLObject::tags() is empty then this means it is an unbounded
sequence.
- In case of «idlSequence» create an attribute "members" on newType.
The type of the attribute is the origin type of the typedef (i.e.
oldType).
- Set the calculated stereotype on the newType object.
- Append the extracted bound onto the tags() of the new type object.
M +28 -8 umbrello/codeimport/idlimport.cpp
M +3 -0 umbrello/codeimport/idlimport.h
https://invent.kde.org/sdk/umbrello/commit/54e6c2d97658302262cebbf843a423f27f23bd72
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list