Transformation menu language : How to understand work principles?
Good evening.
I would like to understand how new "Transformation menu language" works and I ask some help.
Input data:
I have three types of node: Parent, Child, Interface + BaseConcept concept.
I would like to change matching text and/or description of substitution menu for all of concepts.
But I don't understand how to do with even with help of user documentation.
Documentation link:
https://www.jetbrains.com/help/mps/transformation-menu-language.html#substitutemenu(default)
As I understand, there are some statements:
1) Default substitutions menus should has effect on ALL child concepts
Quote: "It also has effect on sub-concepts of the concept, unless these sub-concepts define their own..."
Expectation: If I define "wrap substitute menu" for BaseConcept or Parent -> I can change child behavior
Actual: I still have default substitution menu.
Addition: I don't understand the difference there between "for BaseConcept" and "for Parent".
2) Default transformation menu should has effect on ALL not overridden child concepts
Quote: "If the language designer does not provide one explicitly, a transformation menu defined for the closest super-concept"
Expectation: If I define "wrap substitution menu" for BaseConcept or Parent -> I can change child behavior
Actual: I still have default substitution menu.
Addition: I don't understand the difference there between "for BaseConcept" and "for Parent".
3) Should I always include substitute menu to transformation menu?
Quote: "if you want to assign the substitute menu to a particular cell of an editor, you will need to include your substitute menu in a transformation menu, because only transformation menus can be attached to editor cells"
Expectation: If I include default substitute menu for Parent / BaseConcept something will change =)
Actual: Substitute menu is still the same
4) Can I set default substitute menu / transformation menu for all cells of particular concept?
Expectation: If I set "Default menu for Parent" i will see changes
Actual: Substitution menu is empty Oo
So I decided to ask to help me to understand how it should work and why =)
Picture of my concepts:

-
an action for creating a node of this concept, unless it's abstract
-
an instruction to include the default menu definition of all subconcepts of this concept
Please sign in to leave a comment.