MPS Editor Problem

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

4 comments

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

 

0

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!

0

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

 

 

1

That's what I was looking for.. many thanks!

0

Please sign in to leave a comment.