Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Resource.getDefaultSaveOptions()
Resource.getDefaultSaveOptions() [message #1790338] Fri, 08 June 2018 12:17 Go to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7670
Registered: July 2009
Senior Member
Hi

While debugging an unexpected PUT failure when saving a not-changed referenced http:/... resource within the EcoreEditor, I noticed that ResourceImpl.save(options) accesses defaultSaveOptions directly without first invoking getDefaultSaveOptions(). Consequently the XXXResource-specific defaultSaveOptions were ignored and since it differs whitespace-wise from the EcoreEditor default, the unchanged referenced Resource was deemed in need of a save.

Is this an ResourceImpl.save(options) bug, or is it a derived ResourceImpl responsibilty to call getDefaultSaveOptions() proactively?

Regards

Ed Willink
Re: Resource.getDefaultSaveOptions() [message #1790369 is a reply to message #1790338] Fri, 08 June 2018 17:04 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
There is no ResourceImpl.getDefaultSaveOptions so the general expectation has always been that that derived classes set the map into the variable, and populate that map, if there is a need for that.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Cycle in EMF SDK p2
Next Topic:genmodel code generation removes extensions in plugin.xml
Goto Forum:
  


Current Time: Fri Sep 20 04:18:31 GMT 2024

Powered by FUDForum. Page generated in 0.03522 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top