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: 6461
Registered: July 2009
Senior Member

While debugging an unexpected PUT failure when saving a not-changed referenced http:/... resource within the EcoreEditor, I noticed that 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 bug, or is it a derived ResourceImpl responsibilty to call getDefaultSaveOptions() proactively?


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: 30474
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: Tue Sep 24 08:37:20 GMT 2019

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

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

Back to the top