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: 6111
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: 29653
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.
Previous Topic:Cycle in EMF SDK p2
Next Topic:genmodel code generation removes extensions in plugin.xml
Goto Forum:
  


Current Time: Fri Nov 16 21:53:51 GMT 2018

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

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

Back to the top