Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2005-07-08 15:02:11 +0000
committerDoug Schaefer2005-07-08 15:02:11 +0000
commita843eb1350d42a6b068ad832206f4d228518a068 (patch)
treec1e71d2b49db117c56e4169a17d70b2514b2268c
parent4f1d0f9247fa761b32ecd93b5cf25b6dc6a66036 (diff)
downloadorg.eclipse.cdt-a843eb1350d42a6b068ad832206f4d228518a068.tar.gz
org.eclipse.cdt-a843eb1350d42a6b068ad832206f4d228518a068.tar.xz
org.eclipse.cdt-a843eb1350d42a6b068ad832206f4d228518a068.zip
PR 9881 - Final steps to enable search scope properly on the project scope. Also fixed up varargs in the DOM contributor to eliminate duplicates.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/DOMCompletionContributor.java4
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/SearchCompletionContributor.java3
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$

Back to the top