fix bug 11384. Don't add project resource listener until the project description has been set.
authortimkelly
Fri, 17 Sep 2010 13:35:34 -0500
changeset 2044 2a4e35146637
parent 2043 258c76cf6142
child 2045 00e887c4a2c8
child 2050 0d6ae58214f3
fix bug 11384. Don't add project resource listener until the project description has been set.
builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideProjectModifier.java
--- 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();
 			}