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:
parent
4f1d0f9247
commit
a843eb1350
2 changed files with 3 additions and 4 deletions
|
@ -140,8 +140,8 @@ public class DOMCompletionContributor implements ICompletionContributor {
|
||||||
dispargs.append(',');
|
dispargs.append(',');
|
||||||
idargs.append(',');
|
idargs.append(',');
|
||||||
}
|
}
|
||||||
dispargs.append(" ..."); //$NON-NLS-1$
|
dispargs.append("..."); //$NON-NLS-1$
|
||||||
idargs.append(" ..."); //$NON-NLS-1$
|
idargs.append("..."); //$NON-NLS-1$
|
||||||
} else if (params.length == 0) { // force the void in
|
} else if (params.length == 0) { // force the void in
|
||||||
dispargs.append("void"); //$NON-NLS-1$
|
dispargs.append("void"); //$NON-NLS-1$
|
||||||
idargs.append("void"); //$NON-NLS-1$
|
idargs.append("void"); //$NON-NLS-1$
|
||||||
|
|
|
@ -49,8 +49,7 @@ public class SearchCompletionContributor implements ICompletionContributor {
|
||||||
|
|
||||||
// Create search scope
|
// Create search scope
|
||||||
ICElement[] projects = new ICElement[] { workingCopy.getCProject() };
|
ICElement[] projects = new ICElement[] { workingCopy.getCProject() };
|
||||||
//ICSearchScope scope = SearchEngine.createCSearchScope(projects, true);
|
ICSearchScope scope = SearchEngine.createCSearchScope(projects, true);
|
||||||
ICSearchScope scope = SearchEngine.createWorkspaceScope();
|
|
||||||
|
|
||||||
// Create the pattern
|
// Create the pattern
|
||||||
ICSearchPattern pattern = SearchEngine.createSearchPattern(prefix + "*", ICSearchConstants.UNKNOWN_SEARCH_FOR, ICSearchConstants.ALL_OCCURRENCES, true); //$NON-NLS-1$
|
ICSearchPattern pattern = SearchEngine.createSearchPattern(prefix + "*", ICSearchConstants.UNKNOWN_SEARCH_FOR, ICSearchConstants.ALL_OCCURRENCES, true); //$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue