1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +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:
Mikhail Sennikovsky 2007-03-27 13:13:43 +00:00
parent 850c6c492d
commit 144c64ed44

View file

@ -124,8 +124,12 @@ public class ScannerConfigInfoFactory2 {
MakeCorePlugin.log(e);
}
}
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()) {