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:
parent
e47e1cf94a
commit
7d8a22cfd5
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue