1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

Check forn remove of duplication in the PathEntries.

This commit is contained in:
Alain Magloire 2004-08-27 00:17:32 +00:00
parent e47e1cf94a
commit 7d8a22cfd5

View file

@ -949,6 +949,13 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
}
}
}
// They may have remove some duplications, catch here .. consider it as reordering.
if (list.size() == 0 && oldEntries.length != newEntries.length) {
ICElementDelta delta = makePathEntryDelta(cproject, null, true);
if (delta != null) {
list.add(delta);
}
}
ICElementDelta[] deltas = new ICElementDelta[list.size()];
list.toArray(deltas);
return deltas;