Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 378212 - ResourceHandler could use a saver persist method
Summary: ResourceHandler could use a saver persist method
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-02 04:16 EDT by Thomas Schindl CLA
Modified: 2019-11-14 03:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schindl CLA 2012-05-02 04:16:27 EDT
You can make file persist saver by using
"Resource.OPTION_SAVE_ONLY_IF_CHANGED". From Ed on the newsgroup:

--------8<--------
You could use Resource.OPTION_SAVE_ONLY_IF_CHANGED which writes to either an
in-memory or file system buffer and then compares it to the existing contents
and replaces them only if they're different.  If the first part fails, it won't
try the second part... 
--------8<--------
Comment 1 Lars Vogel CLA 2019-11-14 03:21:52 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.