1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

PR 9881 - Final steps to enable search scope properly on the project scope. Also fixed up varargs in the DOM contributor to eliminate duplicates.

This commit is contained in:
Doug Schaefer 2005-07-08 15:02:11 +00:00
parent 4f1d0f9247
commit a843eb1350
2 changed files with 3 additions and 4 deletions

View file

@ -49,8 +49,7 @@ public class SearchCompletionContributor implements ICompletionContributor {
// Create search scope
ICElement[] projects = new ICElement[] { workingCopy.getCProject() };
//ICSearchScope scope = SearchEngine.createCSearchScope(projects, true);
ICSearchScope scope = SearchEngine.createWorkspaceScope();
ICSearchScope scope = SearchEngine.createCSearchScope(projects, true);
// Create the pattern
ICSearchPattern pattern = SearchEngine.createSearchPattern(prefix + "*", ICSearchConstants.UNKNOWN_SEARCH_FOR, ICSearchConstants.ALL_OCCURRENCES, true); //$NON-NLS-1$