List of concepts in editor


I have two concepts: Concept A and Concept B. Concept A is the children of Concept B.
I would like to have an editor for Concept B where I have a list of Concept A instances.

For example: Concept A is person. Concept B is car, and the car has a person as owner.
So, I make two instances of Concept A (Bill and Bob), and have a new Concept B BMW. I would like to have a list containing Bill and Bob when editing Concept B.

Could you please help me? Thx.
This is a very common pattern. You may checkout the Shapes sample (or better go through the tutorial

Additionally, MPS 3.2 has distilled this pattern into a small example of its own, inside the languagePatterns sample. Look for "container-components".
Thank you.
I just realized that I have to have Concpet A as reference in concept B and not as a child. In this way, having a reference link in the editor makes what I want.

Please sign in to leave a comment.