mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Fix for scanner info settings serialization for [Bug 177940] Several project specific settings should be persisted with the project
This commit is contained in:
parent
850c6c492d
commit
144c64ed44
1 changed files with 9 additions and 2 deletions
|
@ -126,6 +126,10 @@ public class ScannerConfigInfoFactory2 {
|
|||
}
|
||||
|
||||
public void save() throws CoreException {
|
||||
save(false);
|
||||
}
|
||||
|
||||
public void save(boolean serializeDescriptor) throws CoreException {
|
||||
if (isDirty()) {
|
||||
ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(fProject, true);
|
||||
Element sc = descriptor.getProjectData(SCANNER_CONFIG);
|
||||
|
@ -163,6 +167,9 @@ public class ScannerConfigInfoFactory2 {
|
|||
sc.appendChild(el);
|
||||
}
|
||||
|
||||
if(serializeDescriptor)
|
||||
descriptor.saveProjectData();
|
||||
|
||||
fIsDirty = false;
|
||||
}
|
||||
}
|
||||
|
@ -1080,7 +1087,7 @@ public class ScannerConfigInfoFactory2 {
|
|||
*/
|
||||
public synchronized void save() throws CoreException {
|
||||
if(isDirty){
|
||||
container.save();
|
||||
container.save(true);
|
||||
isDirty = false;
|
||||
}
|
||||
// if (store()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue