1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 09:55:29 +02:00

Fix for 192415: Outline view sometimes does not populate

This commit is contained in:
Anton Leherbauer 2007-06-13 12:44:04 +00:00
parent 743ad102bb
commit 90c5f04bd5

View file

@ -48,8 +48,7 @@ public class ReconcileWorkingCopyOperation extends CModelOperation {
}
WorkingCopy workingCopy = getWorkingCopy();
boolean wasOpen= workingCopy.isOpen();
boolean wasConsistent = wasOpen && workingCopy.isConsistent();
boolean wasConsistent = workingCopy.isConsistent();
CElementDeltaBuilder deltaBuilder = null;
try {
@ -64,7 +63,7 @@ public class ReconcileWorkingCopyOperation extends CModelOperation {
// register the deltas
if (deltaBuilder.delta != null) {
if (!wasOpen || deltaBuilder.delta.getAffectedChildren().length > 0) {
if (!wasConsistent || forceProblemDetection || deltaBuilder.delta.getAffectedChildren().length > 0) {
addReconcileDelta(workingCopy, deltaBuilder.delta);
}
}