1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Simplify external SDK highlighting

This commit is contained in:
Anton Leherbauer 2007-04-25 15:47:58 +00:00
parent 07564ddb49
commit d37ff65df9

View file

@ -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) {