From c1c3d5dffda725ab57a2a780e9a1f24d30bf7aba Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Wed, 2 Jul 2008 13:49:48 +0000 Subject: [PATCH] Model builder running in UI-thread, partial fix for 238940. --- .../eclipse/cdt/internal/ui/cview/CViewElementComparer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/CViewElementComparer.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/CViewElementComparer.java index df39fb1eac6..f59c4370848 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/CViewElementComparer.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/cview/CViewElementComparer.java @@ -32,6 +32,9 @@ public class CViewElementComparer implements IElementComparer { if (c1 == null || c2 == null) return false; + if (c1.getElementType() != c2.getElementType()) + return false; + // Below is for children of TranslationUnits but we have to make sure // we handle the case that the child comes from the a workingCopy in that // case it should be equal as the original element.