fix bug 11384. Don't add project resource listener until the project description has been set.
--- a/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideProjectModifier.java Fri Sep 17 11:14:06 2010 -0500
+++ b/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideProjectModifier.java Fri Sep 17 13:35:34 2010 -0500
@@ -262,8 +262,6 @@
}
try {
- // replace the old info in the map with the new
- CarbideBuilderPlugin.getBuildManager().setProjectInfo(this);
// save the CDT project description
@@ -274,6 +272,10 @@
// TODO PERFORMANCE: this can lead to CarbideLanguageData#buildCache(), which is an enormously expensive operation.
// So use a real progress monitor, say from a Job, so UI will be updated
CCorePlugin.getDefault().setProjectDescription(projectTracker.getProject(), projDes, true, new NullProgressMonitor());
+
+ // replace the old info in the map with the new
+ CarbideBuilderPlugin.getBuildManager().setProjectInfo(this);
+
} finally {
SymbianBuildContextDataCache.endProjectOperation();
}