|Re: I create an xml element by right click to EMF editor. Default values appear but not get saved to [message #1815304 is a reply to message #1815258]
||Mon, 30 September 2019 07:29
| ilke Muhtaroglu
Registered: September 2015
Ok. I assumed setting XMLResource.OPTION_KEEP_DEFAULT_CONTENT to true is not mandatory.|
I set it in XYZEditor.java classes in public void doSave method to true.
There I put
saveOptions.put( XMLResource.OPTION_KEEP_DEFAULT_CONTENT, true);
then After putting a debug point as Ed poposed I hit the debugpoint when I save the xml in editor. (Which I debugged as Eclipse Application...)
In XYZEditor.java class (The class that is generated in presentation package and that ends with ...Editor.java class name.) and at public void execute method at line :
resource.save(saveOptions); the debug method hierarchy the debug stops at shouldSaveFeature method...
Thanks for the help.
[Updated on: Mon, 30 September 2019 07:33]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01636 seconds