How to serialize default values with domain specific editor [message #1696133] |
Fri, 22 May 2015 05:34  |
Eclipse User |
|
|
|
Hi,
I have created a metamodel in ecore format and then generated its editor.
Everything is fine but all default values are not saved in the output file.
For example :
- boolean attribute: isOptimization = false => it will not be saved
- double attribute: min = 1 => OK but min = 0 => it will not be saved.
In this case, it's important to save all the default values because the output file will be read by the third party application in C++, for example.
There's some posts discuss a solution of overriding the shouldSaveFeature in XMLSaveImpl:
https://www.eclipse.org/forums/index.php/t/156246/
but I couldn't figure out how to change the default behavior.
Do you have any idea?
Thanks for your help.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04850 seconds