MPS Editor Problem Follow
Hello forum!
I'd like to ask if there's the possibility to make properties part of the intellisense.
for example:
Person
CTRL+SPACE -> user can choose between firstname, lastname, age..
instead of just adding all properties at once
Regards
msch95
Please sign in to leave a comment.
Hi,
I'm afraid I do not understand your question. Could you give more indication about where and when the properties are being added all at once? Are you talking about using the default (reflective) editor?
Vaclav
I'll elaborate a bit more.
I define my editor for person like this
[- Person {firstname} {lastname} {age} -]
Now when the user wants to add a person, I don't want him to see every property, if he chooses the person concept. I want the user to choose from an intellisense menu which property he would like to enter.
Thanks, I really appreciate your help!
You'd have to organize your properties into wrapping concepts, e.g. "concept FirstName extends AbstractPropertyConcept", "concept LastName extends AbstractPropertyConcept", etc. and add the properties to the corresponding concept.
The Person concept would then have a child collection AbstractPropertyConcept properties[0..n] and constraints or checking rules should ensure that you only have legal combinations of properties in the Person nodes.
Vaclav
That's what I was looking for.. many thanks!