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
|
@ -124,8 +124,12 @@ public class ScannerConfigInfoFactory2 {
|
||||||
MakeCorePlugin.log(e);
|
MakeCorePlugin.log(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void save() throws CoreException {
|
public void save() throws CoreException {
|
||||||
|
save(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void save(boolean serializeDescriptor) throws CoreException {
|
||||||
if (isDirty()) {
|
if (isDirty()) {
|
||||||
ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(fProject, true);
|
ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(fProject, true);
|
||||||
Element sc = descriptor.getProjectData(SCANNER_CONFIG);
|
Element sc = descriptor.getProjectData(SCANNER_CONFIG);
|
||||||
|
@ -163,6 +167,9 @@ public class ScannerConfigInfoFactory2 {
|
||||||
sc.appendChild(el);
|
sc.appendChild(el);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(serializeDescriptor)
|
||||||
|
descriptor.saveProjectData();
|
||||||
|
|
||||||
fIsDirty = false;
|
fIsDirty = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1080,7 +1087,7 @@ public class ScannerConfigInfoFactory2 {
|
||||||
*/
|
*/
|
||||||
public synchronized void save() throws CoreException {
|
public synchronized void save() throws CoreException {
|
||||||
if(isDirty){
|
if(isDirty){
|
||||||
container.save();
|
container.save(true);
|
||||||
isDirty = false;
|
isDirty = false;
|
||||||
}
|
}
|
||||||
// if (store()) {
|
// if (store()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue