From 5aac59eb4b2f2f6fe944c9f80ded824cd6c01544 Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Wed, 20 Jan 2010 13:14:15 +0000 Subject: [PATCH] Bug 300161 - PathEntryManager.processDelta() does not process all deltas --- .../eclipse/cdt/internal/core/model/PathEntryManager.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/PathEntryManager.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/PathEntryManager.java index fc34af57e57..4668358fa7c 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/PathEntryManager.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/PathEntryManager.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 QNX Software Systems and others. + * Copyright (c) 2000, 2010 QNX Software Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -1414,11 +1414,13 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange } if (type == ICElement.C_MODEL || type == ICElement.C_CCONTAINER || type == ICElement.C_PROJECT) { ICElementDelta[] affectedChildren = delta.getAffectedChildren(); + boolean result = false; for (ICElementDelta element2 : affectedChildren) { - if (processDelta(element2) == true) { - return true; + if (processDelta(element2)) { + result = true; } } + return result; } return false; }