Hi,
I've been trying to pull the name of an Enumeration Literal via the openAPI in a 2021 R2 model.
This literal is one of the three values used in the enumerated type for the direction of a flow property (in, out, inout).
I've retrieved the "ID" of this literal, but cannot get the name.
I've read the following paragraph in the Properties section of the Users Guide (https://docs.nomagic.com/display/MD190/Properties):
"You must set some com.nomagic.magicdraw.properties.PropertyResourceProvider to your property instance in order to display a normal name, not the ID of the property in the UI of a modeling tool. PropertyResourceProvider has just one method getString(java.lang.String , Property), where a key is an ID of your property."
This would seem to describe my problem exactly, but the grammar is not good enough (or I'm not enough of a programmer) to figure it out from this description.
Can you provide a code example that works please?
In case you try to suggest another approach, we do have a solution using a Finder and TagsHelper, but we need to understand how to get the name of a property from the ID.
Thanks!