Uses of Interface
org.eclipse.jdt.core.search.IJavaSearchScope
Package
Description
Provides support for searching the workspace Java
elements that match a particular description.
Application programming interfaces for interaction
with the Eclipse Java User Interface.
Application programming interfaces for Java search participants..
-
Uses of IJavaSearchScope in org.eclipse.jdt.core.search
Modifier and TypeMethodDescriptionstatic 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
(boolean excludeTestCode, IJavaElement[] elements, boolean includeReferencedProjects) Returns a Java search scope limited to the given Java elements.static IJavaSearchScope
SearchEngine.createJavaSearchScope
(boolean excludeTestCode, IJavaElement[] elements, int includeMask) Returns a Java search scope limited to the given Java elements.static IJavaSearchScope
SearchEngine.createJavaSearchScope
(org.eclipse.core.resources.IResource[] resources) Deprecated.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.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 TypeMethodDescriptionvoid
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, org.eclipse.core.runtime.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, boolean resolveDocumentName, org.eclipse.core.runtime.IProgressMonitor monitor) Query a given index for matching entries.void
SearchPattern.findIndexMatches
(org.eclipse.jdt.internal.core.index.Index index, org.eclipse.jdt.internal.core.search.IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, org.eclipse.core.runtime.IProgressMonitor monitor) Query a given index for matching entries.abstract void
SearchParticipant.locateMatches
(SearchDocument[] documents, SearchPattern pattern, IJavaSearchScope scope, SearchRequestor requestor, org.eclipse.core.runtime.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
(org.eclipse.core.resources.IWorkspace workspace, String patternString, int searchFor, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector) void
SearchEngine.search
(org.eclipse.core.resources.IWorkspace workspace, IJavaElement element, int limitTo, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector) void
SearchEngine.search
(org.eclipse.core.resources.IWorkspace workspace, ISearchPattern searchPattern, IJavaSearchScope scope, IJavaSearchResultCollector resultCollector) void
SearchEngine.search
(SearchPattern pattern, SearchParticipant[] participants, IJavaSearchScope scope, SearchRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Searches for matches of a given search pattern.void
SearchEngine.searchAllMethodNames
(char[] packageName, int pkgMatchRule, char[] declaringQualification, int declQualificationMatchRule, char[] declaringSimpleName, int declSimpleNameMatchRule, char[] methodName, int methodMatchRule, IJavaSearchScope scope, MethodNameMatchRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all method declarations in the given scope.void
SearchEngine.searchAllMethodNames
(char[] packageName, int pkgMatchRule, char[] declaringQualification, int declQualificationMatchRule, char[] declaringSimpleName, int declSimpleNameMatchRule, char[] methodName, int methodMatchRule, IJavaSearchScope scope, MethodNameRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all method declarations in the given scope.void
SearchEngine.searchAllMethodNames
(char[] qualifier, int qualifierMatchRule, char[] methodName, int methodMatchRule, IJavaSearchScope scope, MethodNameMatchRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all method declarations in the given scope.void
SearchEngine.searchAllMethodNames
(char[] qualifier, int qualifierMatchRule, char[] methodName, int methodMatchRule, IJavaSearchScope scope, MethodNameRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all method declarations in the given scope.void
SearchEngine.searchAllTypeNames
(char[][] qualifications, char[][] typeNames, IJavaSearchScope scope, TypeNameMatchRequestor nameMatchRequestor, int waitingPolicy, org.eclipse.core.runtime.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, org.eclipse.core.runtime.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, org.eclipse.core.runtime.IProgressMonitor progressMonitor) void
SearchEngine.searchAllTypeNames
(char[] packageExactName, char[] typeName, int matchRule, int searchFor, IJavaSearchScope scope, TypeNameRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) void
SearchEngine.searchAllTypeNames
(char[] packageName, int packageMatchRule, char[] typeName, int typeMatchRule, int searchFor, IJavaSearchScope scope, TypeNameMatchRequestor nameMatchRequestor, int waitingPolicy, org.eclipse.core.runtime.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, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Searches for all top-level types and member types in the given scope.void
SearchEngine.searchAllTypeNames
(org.eclipse.core.resources.IWorkspace workspace, char[] packageName, char[] typeName, int matchMode, boolean isCaseSensitive, int searchFor, IJavaSearchScope scope, ITypeNameRequestor nameRequestor, int waitingPolicy, org.eclipse.core.runtime.IProgressMonitor progressMonitor) abstract org.eclipse.core.runtime.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. -
Uses of IJavaSearchScope in org.eclipse.jdt.ui
Modifier and TypeMethodDescriptionstatic org.eclipse.ui.dialogs.SelectionDialog
JavaUI.createMainTypeDialog
(org.eclipse.swt.widgets.Shell parent, org.eclipse.jface.operation.IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection) Creates a selection dialog that lists all types in the given scope containing a standardmain
method.static org.eclipse.ui.dialogs.SelectionDialog
JavaUI.createMainTypeDialog
(org.eclipse.swt.widgets.Shell parent, org.eclipse.jface.operation.IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection, String filter) Creates a selection dialog that lists all types in the given scope containing a standardmain
method.static org.eclipse.ui.dialogs.SelectionDialog
JavaUI.createPackageDialog
(org.eclipse.swt.widgets.Shell parent, org.eclipse.jface.operation.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 org.eclipse.ui.dialogs.SelectionDialog
JavaUI.createPackageDialog
(org.eclipse.swt.widgets.Shell parent, org.eclipse.jface.operation.IRunnableContext context, IJavaSearchScope scope, boolean multipleSelection, int flags, String filter) Creates a selection dialog that lists all packages of the given Java search scope.static org.eclipse.ui.dialogs.SelectionDialog
JavaUI.createTypeDialog
(org.eclipse.swt.widgets.Shell parent, org.eclipse.jface.operation.IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection) Creates a selection dialog that lists all types in the given scope.static org.eclipse.ui.dialogs.SelectionDialog
JavaUI.createTypeDialog
(org.eclipse.swt.widgets.Shell parent, org.eclipse.jface.operation.IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection, String filter) Creates a selection dialog that lists all types in the given scope.static org.eclipse.ui.dialogs.SelectionDialog
JavaUI.createTypeDialog
(org.eclipse.swt.widgets.Shell parent, org.eclipse.jface.operation.IRunnableContext context, IJavaSearchScope scope, int style, boolean multipleSelection, String filter, TypeSelectionExtension extension) Creates a selection dialog that lists all types in the given scope. -
Uses of IJavaSearchScope in org.eclipse.jdt.ui.search
Modifier and TypeMethodDescriptionQuerySpecification.getScope()
Returns the search scope to be used in the query.ModifierConstructorDescriptionElementQuerySpecification
(IJavaElement javaElement, int limitTo, IJavaSearchScope scope, String scopeDescription) A constructor.PatternQuerySpecification
(String pattern, int searchFor, boolean caseSensitive, int limitTo, IJavaSearchScope scope, String scopeDescription)
SearchEngine.createJavaSearchScope(IJavaElement[])
instead.