1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

clear the old cache entries

This commit is contained in:
Alain Magloire 2004-04-26 22:32:17 +00:00
parent 02e31a94fd
commit 56bf0c46ce

View file

@ -463,7 +463,6 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
IProject project = cproject.getProject();
IPathEntryStore store = getPathEntryStore(project);
store.setRawPathEntries(project, newRawEntries);
resolvedMap.remove(cproject);
} catch (CoreException e) {
throw new CModelException(e);
}
@ -647,6 +646,8 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
ICProject cproject = manager.create(project);
try {
IPathEntry[] oldResolvedEntries = getResolvedPathEntries(cproject);
// Clear the old cache entries.
resolvedMap.remove(cproject);
IPathEntry[] newResolvedEntries = getResolvedPathEntries(cproject);
ICElementDelta[] deltas = generatePathEntryDeltas(cproject, oldResolvedEntries, newResolvedEntries);
if (deltas.length > 0) {