AToMPM / atompm

A Tool for Multi-Paradigm Modeling
https://atompm.github.io/
GNU Lesser General Public License v3.0
22 stars 15 forks source link

Mapper/Parser on triggered on load #64

Closed esyriani closed 6 years ago

esyriani commented 6 years ago

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.