From a843eb1350d42a6b068ad832206f4d228518a068 Mon Sep 17 00:00:00 2001 From: Doug Schaefer Date: Fri, 8 Jul 2005 15:02:11 +0000 Subject: PR 9881 - Final steps to enable search scope properly on the project scope. Also fixed up varargs in the DOM contributor to eliminate duplicates. --- .../cdt/internal/ui/text/contentassist/DOMCompletionContributor.java | 4 ++-- .../internal/ui/text/contentassist/SearchCompletionContributor.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/DOMCompletionContributor.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/DOMCompletionContributor.java index 3a2aeda6d45..f6646cd8647 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/DOMCompletionContributor.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/DOMCompletionContributor.java @@ -140,8 +140,8 @@ public class DOMCompletionContributor implements ICompletionContributor { dispargs.append(','); idargs.append(','); } - dispargs.append(" ..."); //$NON-NLS-1$ - idargs.append(" ..."); //$NON-NLS-1$ + dispargs.append("..."); //$NON-NLS-1$ + idargs.append("..."); //$NON-NLS-1$ } else if (params.length == 0) { // force the void in dispargs.append("void"); //$NON-NLS-1$ idargs.append("void"); //$NON-NLS-1$ diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/SearchCompletionContributor.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/SearchCompletionContributor.java index 72e74fef955..d427a36ac79 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/SearchCompletionContributor.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/SearchCompletionContributor.java @@ -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$ -- cgit v1.2.3