org.eclipse.cdt.internal.refactoring
Class TextSearchWrapper

java.lang.Object
  extended by org.eclipse.cdt.internal.refactoring.TextSearchWrapper
All Implemented Interfaces:
ICRefactoringSearch

public class TextSearchWrapper
extends java.lang.Object
implements ICRefactoringSearch

Wraps the platform text search and uses a scanner to categorize the text-matches by location (comments, string-literals, etc.).


Field Summary
 
Fields inherited from interface org.eclipse.cdt.refactoring.ICRefactoringSearch
SCOPE_FILE, SCOPE_RELATED_PROJECTS, SCOPE_SINGLE_PROJECT, SCOPE_WORKING_SET, SCOPE_WORKSPACE
 
Constructor Summary
TextSearchWrapper()
           
 
Method Summary
 void categorizeMatches(java.util.List matches, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 org.eclipse.core.runtime.IStatus searchWord(int scope, org.eclipse.core.resources.IFile resource, java.lang.String workingSet, java.lang.String[] patterns, java.lang.String word, org.eclipse.core.runtime.IProgressMonitor monitor, java.util.List target)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextSearchWrapper

public TextSearchWrapper()
Method Detail

searchWord

public org.eclipse.core.runtime.IStatus searchWord(int scope,
                                                   org.eclipse.core.resources.IFile resource,
                                                   java.lang.String workingSet,
                                                   java.lang.String[] patterns,
                                                   java.lang.String word,
                                                   org.eclipse.core.runtime.IProgressMonitor monitor,
                                                   java.util.List target)
Specified by:
searchWord in interface ICRefactoringSearch
Parameters:
monitor -

categorizeMatches

public void categorizeMatches(java.util.List matches,
                              org.eclipse.core.runtime.IProgressMonitor monitor)