Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 72287

Summary: [prefs] ProjectPreferences reacting to its own changes
Product: [Eclipse Project] Platform Reporter: Rafael Chaves <eclipse>
Component: ResourcesAssignee: DJ Houghton <dj.houghton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: All   
Whiteboard:

Description Rafael Chaves CLA 2004-08-19 11:42:06 EDT
In bug 70372, the ProjectPreferences class was changed to recognize changes to a
preferences file and ensure its in-memory model was in sync with the one on disk.

That fix has a problem in that we end up reloading preferences even when
Preferences.flush is called (which calls IFile.setContents, firing a resource
change event). Then we end up reloading the state what we just wrote.

We could use the same workaround used by Project.updateDescription (use a flag
that tells us whether we are in the context of saving the file, and just don't
do anything in that case).
Comment 1 DJ Houghton CLA 2004-08-30 15:05:40 EDT
Fixed when fixing bug 59899.