Hi fellow MPS enthusiasts,
I am currently trying to implement a toy-language in order to familiarize myself with MPS. At this point I am hitting the wall concerning a specific editor behavior that I am trying to implement.
The context is as follows:
- Let's assume I have concepts A, B, C which implement the INamedConcept interface.
- concept A has [0..n] children of some concept B.
- context C holds a  reference to an instance of concept B called refToB.
Now, the editor
of concept C
should allow me to do the following:
There is a cell for the refToB
reference on which I can invoke the completion menu via CTRL+SPACE. This menu provides me with all possible target instances of concept B
for this reference. However, the menu should not simply list all concept B
instances but instead should list them as Parent.Child, i.e. NameOfParentInstanceA.NameOfChildInstanceB
Once I select any of the given options the cell should show NameOfParentInstanceA.NameOfChildInstanceB as well and not just the name of the referenced instance of concept B
I tried to implement this with the standard cell models including custom cells but couldn't really make it work. I was also considering editor actions but to no avail.
I would be grateful for any leads.