I was trying to build a language where a set of parameters is given (users may not add/remove parameters), but values of these parameters may be changed.
To realize this I tried to do define a table as in the test case list example. (using a partial table and action maps for addition/deletion behaviour)
However, I ran into a problem. It seems that overriding actions such as DELETE and INSERT does not always properly override the behaviour.
In this example the following issues with actions can be seen:
INSERT and INSERT_BEFORE actions should add initialized nodes of concrete type Param after/before current node (as defined in the action map). Instead, new nodes of the abstract type are inserted at the beginning of the list.
DELETE (and other variants) should be prohibited according to the action map, but deletion events are not caught (most of the time).
Behaviour for insertion as well as deletion at the beginning/end of a row is different than in the middle of a row.
Steps to reproduce:
Open the model
Rebuild language
Try to press insert and enter at beginning, end and middle of a row
try to press delete and backspace at the beginneing, end and middle of a row
Do you know if this is a problem in this example or if these events from the action map are indeed not caught correctly?
Hi,
I was trying to build a language where a set of parameters is given (users may not add/remove parameters), but values of these parameters may be changed.
To realize this I tried to do define a table as in the test case list example. (using a partial table and action maps for addition/deletion behaviour)
However, I ran into a problem. It seems that overriding actions such as DELETE and INSERT does not always properly override the behaviour.
Anonymized example model: https://github.com/klemensschindler/mps-table-example
In this example the following issues with actions can be seen:
Steps to reproduce:
Do you know if this is a problem in this example or if these events from the action map are indeed not caught correctly?
Kind Regards,
Klemens