From d37ff65df9a15e0aa415cc1808d9dc002153f2eb Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Wed, 25 Apr 2007 15:47:58 +0000 Subject: [PATCH] Simplify external SDK highlighting --- .../cdt/internal/ui/editor/SemanticHighlightings.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightings.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightings.java index e301a84814a..7cd44fd223f 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightings.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/SemanticHighlightings.java @@ -1661,7 +1661,7 @@ public class SemanticHighlightings { * @see org.eclipse.cdt.internal.ui.editor.SemanticHighlighting#getDefaultTextColor() */ public RGB getDefaultTextColor() { - return new RGB(128, 40, 100); + return new RGB(100, 40, 128); } /* @@ -1731,13 +1731,6 @@ public class SemanticHighlightings { if (binding.isFileLocal()) { return false; } - IIndexName[] defs= index.findDefinitions(binding); - for (int i = 0; i < defs.length; i++) { - IIndexFile indexFile= defs[i].getFile(); - if (indexFile != null && indexFile.getLocation().getFullPath() != null) { - return false; - } - } IIndexName[] decls= index.findDeclarations(binding); for (int i = 0; i < decls.length; i++) { IIndexFile indexFile= decls[i].getFile(); @@ -1745,7 +1738,7 @@ public class SemanticHighlightings { return false; } } - if (defs.length != 0 || decls.length != 0) { + if (decls.length != 0) { return true; } } catch (CoreException exc) {