Skip to main content
summaryrefslogtreecommitdiffstats
path: root/qt
diff options
context:
space:
mode:
authorDavid Kaspar2014-04-30 12:20:20 -0400
committerDoug Schaefer2014-04-30 15:34:21 -0400
commit82853c889d9dfd4aba419ce84fd4fba5b7c8f555 (patch)
tree3f2ee5aa6c7c5c9ffbd7cf66e5f162e34bf66fbb /qt
parentfa12f215f933bec8f28f12d294c2c7f6a9b245f9 (diff)
downloadorg.eclipse.cdt-82853c889d9dfd4aba419ce84fd4fba5b7c8f555.tar.gz
org.eclipse.cdt-82853c889d9dfd4aba419ce84fd4fba5b7c8f555.tar.xz
org.eclipse.cdt-82853c889d9dfd4aba419ce84fd4fba5b7c8f555.zip
Bug 433869: IQMakeProjectInfo is not updating on active conf. changed
Fixing incorrect eventTypes used for registering CProjectDescriptionListener in QMakeProjectInfo.start() method. Change-Id: Ieb602a38999868e3da8487a1757c69bd50cb5837 Signed-off-by: David Kaspar <dkaspar@blackberry.com> Reviewed-on: https://git.eclipse.org/r/25808 Tested-by: Hudson CI Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Diffstat (limited to 'qt')
-rw-r--r--qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/index/QMakeProjectInfoManager.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/index/QMakeProjectInfoManager.java b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/index/QMakeProjectInfoManager.java
index 4553bcbfcd..46e51b42e1 100644
--- a/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/index/QMakeProjectInfoManager.java
+++ b/qt/org.eclipse.cdt.qt.core/src/org/eclipse/cdt/internal/qt/core/index/QMakeProjectInfoManager.java
@@ -46,7 +46,7 @@ public class QMakeProjectInfoManager {
synchronized (CACHE_SYNC) {
CACHE = new HashMap<IProject,QMakeProjectInfo>();
}
- CoreModel.getDefault().addCProjectDescriptionListener(PD_LISTENER, ICDescriptionDelta.ACTIVE_CFG);
+ CoreModel.getDefault().addCProjectDescriptionListener(PD_LISTENER, CProjectDescriptionEvent.LOADED | CProjectDescriptionEvent.APPLIED);
ResourcesPlugin.getWorkspace().addResourceChangeListener(RC_LISTENER, IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_CLOSE | IResourceChangeEvent.PRE_DELETE);
}
@@ -110,9 +110,14 @@ public class QMakeProjectInfoManager {
// called on active project configuration change
@Override
public void handleEvent(CProjectDescriptionEvent event) {
- QMakeProjectInfo info = getQMakeProjectInfoFor(event.getProject(), false);
- if (info != null) {
- info.updateState();
+ ICDescriptionDelta projectDelta = event.getProjectDelta();
+ if (projectDelta != null) {
+ if ((projectDelta.getChangeFlags() & ICDescriptionDelta.ACTIVE_CFG) != 0) {
+ QMakeProjectInfo info = getQMakeProjectInfoFor(event.getProject(), false);
+ if (info != null) {
+ info.updateState();
+ }
+ }
}
}

Back to the top