Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.search.core.text
Class TextSearchEngine


java.lang.Object
  extended by 
org.eclipse.search.core.text.TextSearchEngine

public abstract class TextSearchEngine
extends Object

A TextSearchEngine searches the content of a workspace file resources for matches to a given search pattern.

create() gives access to an instance of the search engine. By default this is the default text search engine (see createDefault()) but extensions can offer more sophisticated search engine implementations.

Since:
3.2

Constructor Summary
TextSearchEngine ()
           
 
Method Summary
static  TextSearchEngine create ()
          Creates an instance of the search engine.
static  TextSearchEngine createDefault ()
          Creates the default, built-in, text search engine that implements a brute-force search, not using any search index.
abstract   IStatus search ( IFile[] scope, TextSearchRequestor requestor, Pattern searchPattern, IProgressMonitor monitor)
          Uses a given search pattern to find matches in the content of workspace file resources.
abstract   IStatus search ( TextSearchScope scope, TextSearchRequestor requestor, Pattern searchPattern, IProgressMonitor monitor)
          Uses a given search pattern to find matches in the content of workspace file resources.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextSearchEngine

public TextSearchEngine()
Method Detail

create

public static 
TextSearchEngine create()
Creates an instance of the search engine. By default this is the default text search engine (see createDefault()), but extensions can offer more sophisticated search engine implementations.

Returns:
the created TextSearchEngine.

createDefault

public static 
TextSearchEngine createDefault()
Creates the default, built-in, text search engine that implements a brute-force search, not using any search index. Note that clients should always use the search engine provided by create().

Returns:
an instance of the default text search engine TextSearchEngine.

search

public abstract 
IStatus search(
TextSearchScope scope,
                               
TextSearchRequestor requestor,
                               
Pattern searchPattern,
                               
IProgressMonitor monitor)
Uses a given search pattern to find matches in the content of workspace file resources. If a file is open in an editor, the editor buffer is searched.

Parameters:
requestor - the search requestor that gets the search results
scope - the scope defining the resources to search in
searchPattern - The search pattern used to find matches in the file contents.
monitor - the progress monitor to use
Returns:
the status containing information about problems in resources searched.

search

public abstract 
IStatus search(
IFile[] scope,
                               
TextSearchRequestor requestor,
                               
Pattern searchPattern,
                               
IProgressMonitor monitor)
Uses a given search pattern to find matches in the content of workspace file resources. If a file is open in an editor, the editor buffer is searched.

Parameters:
requestor - the search requestor that gets the search results
scope - the files to search in
searchPattern - The search pattern used to find matches in the file contents.
monitor - the progress monitor to use
Returns:
the status containing information about problems in resources searched.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire