Package | Description |
---|---|
org.eclipse.jdt.core.search |
Provides support for searching the workspace Java
elements that match a particular description.
|
org.eclipse.jdt.ui |
Application programming interfaces for interaction
with the Eclipse Java User Interface.
|
org.eclipse.jdt.ui.search |
Application programming interfaces for Java search participants..
|
Modifier and Type | Method and Description |
---|---|
static IJavaSearchScope |
SearchEngine.createHierarchyScope(IType type)
Returns a Java search scope limited to the hierarchy of the given type.
|
static IJavaSearchScope |
SearchEngine.createHierarchyScope(IType type,
WorkingCopyOwner owner)
Returns a Java search scope limited to the hierarchy of the given type.
|
static IJavaSearchScope |
SearchEngine.createJavaSearchScope(IJavaElement[] elements)
Returns a Java search scope limited to the given Java elements.
|
static IJavaSearchScope |
SearchEngine.createJavaSearchScope(IJavaElement[] elements,
boolean includeReferencedProjects)
Returns a Java search scope limited to the given Java elements.
|
static IJavaSearchScope |
SearchEngine.createJavaSearchScope(IJavaElement[] elements,
int includeMask)
Returns a Java search scope limited to the given Java elements.
|
static IJavaSearchScope |
SearchEngine.createJavaSearchScope(IResource[] resources)
Deprecated.
Use
SearchEngine.createJavaSearchScope(IJavaElement[]) instead. |
static IJavaSearchScope |
SearchEngine.createStrictHierarchyScope(IJavaProject project,
IType type,
boolean onlySubtypes,
boolean includeFocusType,
WorkingCopyOwner owner)
Returns a Java search scope limited to the hierarchy of the given type and to a given project.
|
static IJavaSearchScope |
SearchEngine.createWorkspaceScope()
Returns a Java search scope with the workspace as the only limit.
|
Modifier and Type | Method and Description |
---|---|
void |
SearchPattern.acceptMatch(String relativePath,
String containerPath,
char separator,
SearchPattern pattern,
org.eclipse.jdt.internal.core.search.IndexQueryRequestor requestor,
SearchParticipant participant,
IJavaSearchScope scope) |
void |
SearchPattern.acceptMatch(String relativePath,
String containerPath,
char separator,
SearchPattern pattern,
org.eclipse.jdt.internal.core.search.IndexQueryRequestor requestor,
SearchParticipant participant,
IJavaSearchScope scope,
IProgressMonitor monitor) |
void |
SearchPattern.findIndexMatches(org.eclipse.jdt.internal.core.index.Index index,
org.eclipse.jdt.internal.core.search.IndexQueryRequestor requestor,
SearchParticipant participant,
IJavaSearchScope scope,
IProgressMonitor monitor)
Query a given index for matching entries.
|
abstract void |
SearchParticipant.locateMatches(SearchDocument[] documents,
SearchPattern pattern,
IJavaSearchScope scope,
SearchRequestor requestor,
IProgressMonitor monitor)
Locates the matches in the given documents using the given search pattern
and search scope, and reports them to the given search requestor.
|
void |
SearchEngine.search(IWorkspace workspace,
IJavaElement element,
int limitTo,
IJavaSearchScope scope,
IJavaSearchResultCollector resultCollector)
|
void |
SearchEngine.search(IWorkspace workspace,
ISearchPattern searchPattern,
IJavaSearchScope scope,
IJavaSearchResultCollector resultCollector)
|
void |
SearchEngine.search(IWorkspace workspace,
String patternString,
int searchFor,
int limitTo,
IJavaSearchScope scope,
IJavaSearchResultCollector resultCollector)
|
void |
SearchEngine.search(SearchPattern pattern,
SearchParticipant[] participants,
IJavaSearchScope scope,
SearchRequestor requestor,
IProgressMonitor monitor)
Searches for matches of a given search pattern.
|
void |
SearchEngine.searchAllTypeNames(char[][] qualifications,
char[][] typeNames,
IJavaSearchScope scope,
TypeNameMatchRequestor nameMatchRequestor,
int waitingPolicy,
IProgressMonitor progressMonitor)
Searches for all top-level types and member types in the given scope matching any of the given qualifications
and type names in a case sensitive way.
|
void |
SearchEngine.searchAllTypeNames(char[][] qualifications,
char[][] typeNames,
IJavaSearchScope scope,
TypeNameRequestor nameRequestor,
int waitingPolicy,
IProgressMonitor progressMonitor)
Searches for all top-level types and member types in the given scope matching any of the given qualifications
and type names in a case sensitive way.
|
void |
SearchEngine.searchAllTypeNames(char[] packageName,
char[] typeName,
int matchRule,
int searchFor,
IJavaSearchScope scope,
ITypeNameRequestor nameRequestor,
int waitingPolicy,
IProgressMonitor progressMonitor)
|
void |
SearchEngine.searchAllTypeNames(char[] packageExactName,
char[] typeName,
int matchRule,
int searchFor,
IJavaSearchScope scope,
TypeNameRequestor nameRequestor,
int waitingPolicy,
IProgressMonitor progressMonitor)
|
void |
SearchEngine.searchAllTypeNames(char[] packageName,
int packageMatchRule,
char[] typeName,
int typeMatchRule,
int searchFor,
IJavaSearchScope scope,
TypeNameMatchRequestor nameMatchRequestor,
int waitingPolicy,
IProgressMonitor progressMonitor)
Searches for all top-level types and member types in the given scope.
|
void |
SearchEngine.searchAllTypeNames(char[] packageName,
int packageMatchRule,
char[] typeName,
int typeMatchRule,
int searchFor,
IJavaSearchScope scope,
TypeNameRequestor nameRequestor,
int waitingPolicy,
IProgressMonitor progressMonitor)
Searches for all top-level types and member types in the given scope.
|
void |
SearchEngine.searchAllTypeNames(IWorkspace workspace,
char[] packageName,
char[] typeName,
int matchMode,
boolean isCaseSensitive,
int searchFor,
IJavaSearchScope scope,
ITypeNameRequestor nameRequestor,
int waitingPolicy,
IProgressMonitor progressMonitor)
|
abstract IPath[] |
SearchParticipant.selectIndexes(SearchPattern query,
IJavaSearchScope scope)
Returns the collection of index locations to consider when performing the
given search query in the given scope.
|
Modifier and Type | Method and Description |
---|---|
static SelectionDialog |
JavaUI.createMainTypeDialog(Shell parent,
IRunnableContext context,
IJavaSearchScope scope,
int style,
boolean multipleSelection)
Creates a selection dialog that lists all types in the given scope containing
a standard
main method. |
static SelectionDialog |
JavaUI.createMainTypeDialog(Shell parent,
IRunnableContext context,
IJavaSearchScope scope,
int style,
boolean multipleSelection,
String filter)
Creates a selection dialog that lists all types in the given scope containing
a standard
main method. |
static SelectionDialog |
JavaUI.createPackageDialog(Shell parent,
IRunnableContext context,
IJavaSearchScope scope,
boolean multipleSelection,
boolean removeDuplicates,
String filter)
Creates a selection dialog that lists all packages of the given Java search scope.
|
static SelectionDialog |
JavaUI.createTypeDialog(Shell parent,
IRunnableContext context,
IJavaSearchScope scope,
int style,
boolean multipleSelection)
Creates a selection dialog that lists all types in the given scope.
|
static SelectionDialog |
JavaUI.createTypeDialog(Shell parent,
IRunnableContext context,
IJavaSearchScope scope,
int style,
boolean multipleSelection,
String filter)
Creates a selection dialog that lists all types in the given scope.
|
static SelectionDialog |
JavaUI.createTypeDialog(Shell parent,
IRunnableContext context,
IJavaSearchScope scope,
int style,
boolean multipleSelection,
String filter,
TypeSelectionExtension extension)
Creates a selection dialog that lists all types in the given scope.
|
Modifier and Type | Method and Description |
---|---|
IJavaSearchScope |
QuerySpecification.getScope()
Returns the search scope to be used in the query.
|
Constructor and Description |
---|
ElementQuerySpecification(IJavaElement javaElement,
int limitTo,
IJavaSearchScope scope,
String scopeDescription)
A constructor.
|
PatternQuerySpecification(String pattern,
int searchFor,
boolean caseSensitive,
int limitTo,
IJavaSearchScope scope,
String scopeDescription) |
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.