Bug 358091 - Add value field to Enum Literal
Summary: Add value field to Enum Literal
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-16 19:55 UTC by Tzvetelin Katchov
Modified: 2016-01-22 12:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 2.18.80 (KDE Applications 16.03.80)
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tzvetelin Katchov 2016-01-16 19:55:28 UTC
UML 2.5 specification don't provide way to specify the internal representation of enumeration value in system programming languages. Umbrello should support Enum Literal value for better and complete code generation like below C++ example:

namespace AssociationType
{
    enum Enum {
        Generalization  =  500,
        Aggregation,
        ...
Comment 1 Ralf Habacker 2016-01-22 12:15:19 UTC
Git commit af8a6492b0e7a111d379e9e3828a248390bb4b05 by Ralf Habacker, on behalf of Tzvetelin Katchov.
Committed on 22/01/2016 at 12:12.
Pushed by habacker into branch 'master'.

Add value field to Enum Literal

The "value" field is an extension to the UML 2.5 metamodel. It manages
the internal representation of enumeration value in system programming
languages.

Add value field to new Enum Literal properties dialog, and class
UMLEnumLiteral, and widget Enum. Add new attribute "value" to
"UML:EnumerationLiteral" element in xmi file format, and increase
the version of XMI_FILE_VERSION.
FIXED-IN:2.18.80 (KDE Applications 16.03.80)
REVIEW:126612

M  +1    -0    umbrello/CMakeLists.txt
A  +104  -0    umbrello/dialogs/umlenumliteraldialog.cpp     [License: GPL (v3+)]
A  +53   -0    umbrello/dialogs/umlenumliteraldialog.h     [License: GPL (v3+)]
M  +53   -17   umbrello/umlmodel/enumliteral.cpp
M  +15   -1    umbrello/umlmodel/enumliteral.h
M  +2    -2    umbrello/umlwidgets/enumwidget.cpp
M  +2    -2    umbrello/version.h

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