mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 13:05:22 +02:00
Fix for the [Bug 186996] Scanner discovery cache not deleted with project delete
This commit is contained in:
parent
29ddd2e511
commit
271f65a6db
2 changed files with 6 additions and 1 deletions
|
@ -126,6 +126,7 @@ public class DiscoveredPathManager implements IDiscoveredPathManager, IResourceC
|
|||
if (resource.getType() == IResource.PROJECT) {
|
||||
//TODO: better handlind of resource remove/rename
|
||||
fDiscoveredInfoHolderMap.remove(resource);
|
||||
ScannerConfigProfileManager.getInstance().handleProjectRemoved(resource.getProject());
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2004, 2005 IBM Corporation and others.
|
||||
* Copyright (c) 2004, 2007 IBM Corporation and others.
|
||||
* All rights reserved. This program and the accompanying materials
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -94,6 +94,10 @@ public class ScannerConfigProfileManager {
|
|||
return map;
|
||||
}
|
||||
|
||||
public void handleProjectRemoved(IProject project){
|
||||
projectToProfileInstanceMap.remove(project);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param project
|
||||
* @param profileId - if null, get the one associated with the project
|
||||
|
|
Loading…
Add table
Reference in a new issue