ObeoNetwork / M2Doc

The M2Doc technology enables the generation of Office Open XML documents from models.
http://obeonetwork.github.io/M2Doc/
Eclipse Public License 2.0
39 stars 22 forks source link

Template properties are not updated when the template is loaded after modifications #411

Closed ylussaud closed 3 years ago

ylussaud commented 3 years ago

I have observed recently is that after removing a variable from the template (such as rootLogicalComponent in the above example) by replacing it with an m:let variable of the same name, it (sometimes) remains to be displayed in the template properties as a template variable and the validation of the template generates an error

{m:let <— The variable mask an existing variable (rootLogicalComponent).rootLogicalComponent = myModel…}

When the contents of the template is copied into a new template, this issue does not occur anymore - only the myModel variable is displayed in the template properties.

ylussaud commented 3 years ago

When loading the TemplateCustomProperties we should remove unused variables.

ylussaud commented 3 years ago

I can't reproduce this issue. After the following steps unused variables are removed:

At this point the template property wizard reflect the variables used in the template.