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, ...
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