I have a metamodel with one class C and a boolean attribute b (false by default). I defined a concrete syntax for C as a circle. It has a mapper (and a parser) that changes the color to blue or pink depending on a boolean attribute. The default style of the circle is blue.
I create a model with two C objects, one where b==false (default) and one where b==true. The color of each circle is correct. After saving the model, I open it in a new tab, both circles are white. In fact, color=none because they are completely filled transparently, only clickable from the border.
I suppose the mapper/parser are not triggered when opening the model. However, if I change b in each object, then the colors change accordingly.
I have a metamodel with one class C and a boolean attribute b (false by default). I defined a concrete syntax for C as a circle. It has a mapper (and a parser) that changes the color to blue or pink depending on a boolean attribute. The default style of the circle is blue.
I create a model with two C objects, one where b==false (default) and one where b==true. The color of each circle is correct. After saving the model, I open it in a new tab, both circles are white. In fact, color=none because they are completely filled transparently, only clickable from the border.
I suppose the mapper/parser are not triggered when opening the model. However, if I change b in each object, then the colors change accordingly.