Default value/text in editor with abstract concept
I have a language where some concept A has a child of abstract concept B with cardinality 1 and then multiple concrete subconcepts deriving from B exist. The problem I am facing is that the editor always prefills the child entry with some anonymous instance of the abstract concept and therefore I do not know how to provide a custom empty text (for instance to explain the units in which some measurements are done). Is there any way to customize the representation of the default (broken empty) value here?
Please sign in to leave a comment.
Dear Languitar,
Since the cardinality is "1" MPS creates the instance of the concept B (despite it is abstract).
You could specify the editor for B with the label cell with the text you need.
Dear Semen,
thanks for the hint. Unfortunately, I need a different default text at every position my concept B is used. I don't see how I can achieve that this way?
You could use "read only model access" cell and specify the text depending on the node