Skip to content

Commit

Permalink
Merge pull request #3 from szschaler/patch-1
Browse files Browse the repository at this point in the history
Ensure enumeration values are rendered correctly
  • Loading branch information
agarciadom authored Feb 25, 2024
2 parents 39eff63 + 7fb6181 commit f715eb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/resources/flexmi2plantuml.egl
Original file line number Diff line number Diff line change
Expand Up @@ -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)%]
[%}%]
Expand Down Expand Up @@ -106,4 +106,4 @@ operation Any getConstraintColour() {
if (self.isCritique()) return "khaki";
else return "mistyrose";
}
%]
%]

0 comments on commit f715eb5

Please sign in to comment.