fixed bug #9644. also fixed build hammer tooltip which had the same underlying cause.
authorwpaul
Tue, 18 Aug 2009 16:27:31 -0500
changeset 72 451134ee4e6e
parent 71 51dbf4bbe3f7
child 73 82f772574273
fixed bug #9644. also fixed build hammer tooltip which had the same underlying cause.
cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesManager.java
cdt/cdt_6_0_x/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/actions/BuildActiveConfigMenuAction.java
--- a/cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesManager.java	Tue Aug 18 12:42:12 2009 -0500
+++ b/cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/executables/ExecutablesManager.java	Tue Aug 18 16:27:31 2009 -0500
@@ -170,7 +170,7 @@
 		// listen for events we're interested in
 		ResourcesPlugin.getWorkspace().addResourceChangeListener(this, IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.POST_BUILD);
 		CoreModel.getDefault().getProjectDescriptionManager().addCProjectDescriptionListener(this,
-				CProjectDescriptionEvent.DATA_APPLIED);
+				CProjectDescriptionEvent.APPLIED);
 		
 		// schedule a refresh so we get up to date
 		scheduleRefresh();
@@ -551,7 +551,7 @@
 
 		int eventType = event.getEventType();
 
-		if (eventType == CProjectDescriptionEvent.DATA_APPLIED) {
+		if (eventType == CProjectDescriptionEvent.APPLIED) {
 			
 			synchronized (executablesMap) {
 				// see if the active build config has changed
--- a/cdt/cdt_6_0_x/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/actions/BuildActiveConfigMenuAction.java	Tue Aug 18 12:42:12 2009 -0500
+++ b/cdt/cdt_6_0_x/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/actions/BuildActiveConfigMenuAction.java	Tue Aug 18 16:27:31 2009 -0500
@@ -77,7 +77,7 @@
 	public void init(IWorkbenchWindow window) {
 		buildaction = new BuildAction(window, IncrementalProjectBuilder.INCREMENTAL_BUILD);
 		ICProjectDescriptionManager mngr = CoreModel.getDefault().getProjectDescriptionManager();
-		mngr.addCProjectDescriptionListener(this, CProjectDescriptionEvent.DATA_APPLIED);
+		mngr.addCProjectDescriptionListener(this, CProjectDescriptionEvent.APPLIED);
 	}
 
 	/**