mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 23:55:26 +02:00
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/26264 Tested-by: Hudson CI Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
This commit is contained in:
parent
62369d66e9
commit
db2f21e5f2
1 changed files with 9 additions and 4 deletions
|
@ -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,11 +110,16 @@ public class QMakeProjectInfoManager {
|
|||
// called on active project configuration change
|
||||
@Override
|
||||
public void handleEvent(CProjectDescriptionEvent event) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue