From 7fb618106be3774f7c9fc1b77366a73ff6f92005 Mon Sep 17 00:00:00 2001 From: Steffen Zschaler Date: Mon, 19 Feb 2024 16:32:44 +0000 Subject: [PATCH] Ensure enumeration values are rendered correctly --- core/src/main/resources/flexmi2plantuml.egl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/resources/flexmi2plantuml.egl b/core/src/main/resources/flexmi2plantuml.egl index 8db94f1..80f76a6 100644 --- a/core/src/main/resources/flexmi2plantuml.egl +++ b/core/src/main/resources/flexmi2plantuml.egl @@ -12,7 +12,7 @@ var colors = getColors(); [%for (e in elements) { %] object "[%=e.getNodeLabel()%]" as [%=e.getNodeId()%] #[%=colors.get(e.eClass().eContainer().eContents().indexOf(e.eClass()).mod(colors.size()))%] { - [%var attributes = e.eClass().getEAllAttributes().select(attr|e.eIsSet(attr));%] + [%var attributes = e.eClass().getEAllAttributes().select(attr|e.eIsSet(attr) or not attr.isUnsettable());%] [%for (attr in attributes){%] [%=attr.name%] = [%=e.getAttributeValue(attr)%] [%}%] @@ -106,4 +106,4 @@ operation Any getConstraintColour() { if (self.isCritique()) return "khaki"; else return "mistyrose"; } -%] \ No newline at end of file +%]