mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Re-fix for PR 102058: Per file discovery + Extended Scanner Info + C Project does not work
Fixing per project scanner config discovery too.
This commit is contained in:
parent
05422c38fe
commit
b6a787a64a
2 changed files with 6 additions and 2 deletions
|
@ -125,7 +125,7 @@ public class DiscoveredPathManager implements IDiscoveredPathManager, IResourceC
|
|||
* @see org.eclipse.cdt.make.core.scannerconfig.IDiscoveredPathManager#updateDiscoveredInfo(org.eclipse.cdt.make.core.scannerconfig.IDiscoveredPathManager.IDiscoveredPathInfo, java.util.List)
|
||||
*/
|
||||
public void updateDiscoveredInfo(IDiscoveredPathInfo info, List changedResources) throws CoreException {
|
||||
if (fDiscoveredMap.get(info.getProject()) != info) {
|
||||
if (fDiscoveredMap.get(info.getProject()) != null) {
|
||||
IDiscoveredScannerInfoSerializable serializable = info.getSerializable();
|
||||
if (serializable != null) {
|
||||
IProject project = info.getProject();
|
||||
|
|
|
@ -417,8 +417,12 @@ public class PerFileSICollector implements IScannerInfoCollector2, IScannerInfoC
|
|||
// update scanner configuration
|
||||
// MakeCorePlugin.getDefault().getDiscoveryManager().
|
||||
// updateDiscoveredInfo(createPathInfoObject(), siChangedForFileList);
|
||||
IDiscoveredPathInfo pathInfo = MakeCorePlugin.getDefault().getDiscoveryManager().getDiscoveredInfo(project);
|
||||
if (!(pathInfo instanceof IPerFileDiscoveredPathInfo)) {
|
||||
pathInfo = createPathInfoObject();
|
||||
}
|
||||
MakeCorePlugin.getDefault().getDiscoveryManager().
|
||||
updateDiscoveredInfo(createPathInfoObject(), new ArrayList(siChangedForFileMap.keySet()));
|
||||
updateDiscoveredInfo(pathInfo, new ArrayList(siChangedForFileMap.keySet()));
|
||||
monitor.worked(50);
|
||||
} catch (CoreException e) {
|
||||
MakeCorePlugin.log(e);
|
||||
|
|
Loading…
Add table
Reference in a new issue