1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 212031, reset factory on load.

This commit is contained in:
Ken Ryall 2008-01-18 21:22:29 +00:00
parent 602acfa948
commit f1a4cdb2c4

View file

@ -192,6 +192,7 @@ public class CProjectDescription implements ICProjectDescription, ICDataProxyCon
CConfigurationDescriptionCache cache = (CConfigurationDescriptionCache)iter.next(); CConfigurationDescriptionCache cache = (CConfigurationDescriptionCache)iter.next();
try { try {
cache.loadData(factory); cache.loadData(factory);
factory.clear();
} catch (CoreException e) { } catch (CoreException e) {
CCorePlugin.log(e); CCorePlugin.log(e);
iter.remove(); iter.remove();
@ -200,8 +201,6 @@ public class CProjectDescription implements ICProjectDescription, ICDataProxyCon
// doneInitializing(); // doneInitializing();
factory.clear();
// fIsLoadding = false; // fIsLoadding = false;
} }
@ -216,6 +215,7 @@ public class CProjectDescription implements ICProjectDescription, ICDataProxyCon
try { try {
if(cache.applyData(factory, context)) if(cache.applyData(factory, context))
modified = true; modified = true;
factory.clear();
} catch (CoreException e) { } catch (CoreException e) {
CCorePlugin.log(e); CCorePlugin.log(e);
e.printStackTrace(); e.printStackTrace();
@ -225,8 +225,6 @@ public class CProjectDescription implements ICProjectDescription, ICDataProxyCon
// doneInitializing(); // doneInitializing();
factory.clear();
// fIsApplying = false; // fIsApplying = false;
return modified; return modified;