Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.search
Class SearchEngine

java.lang.Object
  extended by org.eclipse.cdt.core.search.SearchEngine
All Implemented Interfaces:
ICSearchConstants

public class SearchEngine
extends Object
implements ICSearchConstants


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.cdt.core.search.ICSearchConstants
ICSearchConstants.LimitTo, ICSearchConstants.SearchFor
 
Field Summary
static boolean VERBOSE
           
 
Fields inherited from interface org.eclipse.cdt.core.search.ICSearchConstants
ALL_OCCURRENCES, CANCEL_IF_NOT_READY_TO_SEARCH, CASE_INSENSITIVE, CASE_SENSITIVE, CLASS, CLASS_STRUCT, DECLARATIONS, DECLARATIONS_DEFINITIONS, DEFINITIONS, DERIVED, ENUM, ENUMTOR, EXACT_MATCH, EXTERNAL_SEARCH_LINK_PREFIX, FIELD, FORCE_IMMEDIATE_SEARCH, FRIEND, FUNCTION, INCLUDE, MACRO, METHOD, NAMESPACE, PATTERN_MATCH, PREFIX_MATCH, REFERENCES, STRUCT, TYPE, TYPEDEF, UNION, UNKNOWN_LIMIT_TO, UNKNOWN_SEARCH_FOR, VAR, WAIT_UNTIL_READY_TO_SEARCH
 
Constructor Summary
SearchEngine()
           
SearchEngine(IWorkingCopy[] workingCopies)
           
 
Method Summary
static ICSearchScope createCFileSearchScope(IFile sourceFile, ArrayList elements)
           
static ICSearchScope createCSearchScope(ICElement[] elements)
           
static ICSearchScope createCSearchScope(ICElement[] elements, boolean includeReferencedProjects)
           
static ICSearchPattern createSearchPattern(String stringPattern, ICSearchConstants.SearchFor searchFor, ICSearchConstants.LimitTo limitTo, boolean isCaseSensitive)
           
static ICSearchScope createWorkspaceScope()
           
 void search(IWorkspace workspace, ICSearchPattern pattern, ICSearchScope scope, ICSearchResultCollector collector, boolean excludeLocalDeclarations)
           
 void search(IWorkspace workspace, ICSearchPattern pattern, ICSearchScope scope, ICSearchResultCollector collector, boolean excludeLocalDeclarations, IMatchLocator matchLocator)
           
 void setWaitingPolicy(int policy)
          Policy is one of ICSearchConstants.FORCE_IMMEDIATE_SEARCH, ICSearchConstants.CANCEL_IF_NOT_READY_TO_SEARCH or ICSearchConstants.WAIT_UNTIL_READY_TO_SEARCH
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE

public static boolean VERBOSE
Constructor Detail

SearchEngine

public SearchEngine()

SearchEngine

public SearchEngine(IWorkingCopy[] workingCopies)
Method Detail

setWaitingPolicy

public void setWaitingPolicy(int policy)
Policy is one of ICSearchConstants.FORCE_IMMEDIATE_SEARCH, ICSearchConstants.CANCEL_IF_NOT_READY_TO_SEARCH or ICSearchConstants.WAIT_UNTIL_READY_TO_SEARCH

Parameters:
policy -

createWorkspaceScope

public static ICSearchScope createWorkspaceScope()
Returns:

createCSearchScope

public static ICSearchScope createCSearchScope(ICElement[] elements)

createCSearchScope

public static ICSearchScope createCSearchScope(ICElement[] elements,
                                               boolean includeReferencedProjects)
Parameters:
objects -
Returns:

createCFileSearchScope

public static ICSearchScope createCFileSearchScope(IFile sourceFile,
                                                   ArrayList elements)
Parameters:
objects -
Returns:

createSearchPattern

public static ICSearchPattern createSearchPattern(String stringPattern,
                                                  ICSearchConstants.SearchFor searchFor,
                                                  ICSearchConstants.LimitTo limitTo,
                                                  boolean isCaseSensitive)

search

public void search(IWorkspace workspace,
                   ICSearchPattern pattern,
                   ICSearchScope scope,
                   ICSearchResultCollector collector,
                   boolean excludeLocalDeclarations)
            throws InterruptedException
Throws:
InterruptedException

search

public void search(IWorkspace workspace,
                   ICSearchPattern pattern,
                   ICSearchScope scope,
                   ICSearchResultCollector collector,
                   boolean excludeLocalDeclarations,
                   IMatchLocator matchLocator)
            throws InterruptedException
Parameters:
_workspace -
pattern -
_scope -
_collector -
Throws:
InterruptedException

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.