From 597791a3c72540c72b12eff105c4c8e9f156dd20 Mon Sep 17 00:00:00 2001 From: Bogdan Gheorghe Date: Fri, 8 Jul 2005 20:57:48 +0000 Subject: [PATCH] Fix for 93127: [Search] we do not have an icon for searching for labels Fix for 99161: Open Declaration's CSearchScope takes too long to create --- .../cdt/internal/core/index/ctagsindexer/CTagEntry.java | 4 ++-- .../eclipse/cdt/internal/core/search/CSearchScope.java | 8 ++++++-- .../cdt/internal/ui/search/actions/FindAction.java | 9 +++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java b/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java index 76e78ffe0e6..f8b448ccb67 100644 --- a/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java +++ b/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/index/ctagsindexer/CTagEntry.java @@ -216,9 +216,9 @@ class CTagEntry{ private char[][] getFunctionSignature() { String signature = (String) tagExtensionField.get(CTagsConsoleParser.SIGNATURE); - if (signature.equals("()")){ + if (signature.equals("()")){ //$NON-NLS-1$ char[][] voidSignature = new char[1][]; - voidSignature[0] = "void".toCharArray(); + voidSignature[0] = "void".toCharArray(); //$NON-NLS-1$ return voidSignature; } return CSearchPattern.scanForParameters(signature); diff --git a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/CSearchScope.java b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/CSearchScope.java index 0b8ff6b73b4..fea32b038c3 100644 --- a/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/CSearchScope.java +++ b/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/CSearchScope.java @@ -69,11 +69,15 @@ public class CSearchScope implements ICSearchScope { IProject project = cProject.getProject(); if (!project.isAccessible() || !visitedProjects.add(project)) return; this.addEnclosingProject(project.getFullPath()); - //Add the children of the project to the scope + + this.add(project.getFullPath(),true); + + /*//Add the children of the project to the scope ICElement[] projChildren = cProject.getChildren(); for (int i=0; i< projChildren.length; i++){ this.add(projChildren[i]); - } + }*/ + //Add the include paths to the scope IIncludeReference[] includeRefs = cProject.getIncludeReferences(); for (int i=0; i