public abstract class TextSearchQueryProvider extends Object
org.eclipse.search.textSearchQueryProvider
extension point. The plug-in preference org.eclipse.search.textSearchQueryProvider defines the preferred
query provider. It is intended that only products choose a preferred query provider.
Modifier and Type | Class and Description |
---|---|
static class |
TextSearchQueryProvider.TextSearchInput
Specified the input for a search query.
|
Constructor and Description |
---|
TextSearchQueryProvider() |
Modifier and Type | Method and Description |
---|---|
abstract ISearchQuery |
createQuery(String selectedText)
Create a query to search for the selected text in the workspace.
|
abstract ISearchQuery |
createQuery(String selectedText,
IResource[] resources)
Create a query to search for the selected text in the given resources.
|
abstract ISearchQuery |
createQuery(String selectedText,
IWorkingSet[] ws)
Create a query to search for the selected text in the given working sets.
|
abstract ISearchQuery |
createQuery(TextSearchQueryProvider.TextSearchInput textSearchInput)
Create a query for the input with the given information.
|
static TextSearchQueryProvider |
getPreferred()
Returns the preferred query provider.
|
public static TextSearchQueryProvider getPreferred()
TextSearchQueryProvider
.public abstract ISearchQuery createQuery(TextSearchQueryProvider.TextSearchInput textSearchInput) throws CoreException
textSearchInput
- the search inputCoreException
- a CoreException
can be thrown when the query provider can not
create a query for the given input.public abstract ISearchQuery createQuery(String selectedText) throws CoreException
selectedText
- the text to search forCoreException
- a CoreException
can be thrown when the query provider can not
create a query for the given input.public abstract ISearchQuery createQuery(String selectedText, IResource[] resources) throws CoreException
selectedText
- the text to search forresources
- the resources to search inCoreException
- a CoreException
can be thrown when the query provider can not
create a query for the given input.public abstract ISearchQuery createQuery(String selectedText, IWorkingSet[] ws) throws CoreException
selectedText
- the text to search forws
- the working sets to search inCoreException
- a CoreException
can be thrown when the query provider can not
create a query for the given input.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.