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

Bug 321778

Summary: Lost preference: build only if changes in workspace
Product: [Tools] CDT Reporter: Keith W. Campbell <keithc>
Component: cdt-buildAssignee: Vivian Kong <vivkong>
Status: RESOLVED FIXED QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: major    
Priority: P3 CC: vivkong
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
proposed patch vivkong: iplog+

Description Keith W. Campbell CLA 2010-08-04 14:54:34 EDT
Build Identifier: helios

The preference 'Build configurations only when there are Eclipse resource changes within the project and its references' in the 'C/C++' group is reset (disabled) every time a workspace is restarted.

This preference was introduced for bug 219337.

Reproducible: Always

Steps to Reproduce:
I downloaded the CDT package for Win32 from http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/heliosr.

In a new workspace, I enabled the preference 'Build configurations only when there are Eclipse resource changes within the project and its references' in the 'C/C++' group.

After restarting the workspace that preference is lost.

Worse, if you enable it, it doesn't take effect unless you press 'Apply' twice (or more), or press 'Apply' and then 'OK'.
Comment 1 Keith W. Campbell CLA 2010-08-04 16:11:32 EDT
Created attachment 175885 [details]
proposed patch
Comment 2 Keith W. Campbell CLA 2010-08-05 13:56:10 EDT
Vivian, seeing as you were involved in fixing bug 219337, I thought you might be able to comment on this (and commit it if meets with your approval). Thanks.
Comment 3 Vivian Kong CLA 2010-09-28 11:37:50 EDT
I'll take a look
Comment 4 Vivian Kong CLA 2010-09-28 11:39:16 EDT
Applied to HEAD with minor copyright statement changes.  Thanks Keith