RSE
Release 1.0

org.eclipse.rse.services.local.search
Class LocalSearchHandler

java.lang.Object
  extended byorg.eclipse.rse.services.local.search.LocalSearchHandler
All Implemented Interfaces:
ISearchHandler

public class LocalSearchHandler
extends Object
implements ISearchHandler

Class used to collect local search results.


Field Summary
protected  HashSet _alreadySearched
           
protected  String _classificationString
           
protected  int _depth
           
protected  SystemSearchFileNameMatcher _fileNameMatcher
           
protected  IFileService _fs
           
protected  boolean _isCancelled
           
protected  boolean _isDone
           
protected  boolean _isFileSearch
           
protected  IHostSearchResultConfiguration _searchConfig
           
protected  SystemSearchString _searchString
           
protected  SystemSearchStringMatcher _stringMatcher
           
protected  File _theFile
           
protected  LocalHostFile _theRmtFile
           
 
Constructor Summary
LocalSearchHandler(IHostSearchResultConfiguration searchConfig, IFileService fileService)
          Constructor for local search handler.
 
Method Summary
 void cancel(IProgressMonitor monitor)
           
protected  boolean doesClassificationMatch(String absolutePath)
          Returns whether classification matches.
protected  boolean doesFilePatternMatch(String compareStr)
           
 boolean isDone()
           
 void search(IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_alreadySearched

protected HashSet _alreadySearched

_searchConfig

protected IHostSearchResultConfiguration _searchConfig

_theFile

protected File _theFile

_depth

protected int _depth

_fs

protected IFileService _fs

_isDone

protected boolean _isDone

_isCancelled

protected boolean _isCancelled

_theRmtFile

protected LocalHostFile _theRmtFile

_searchString

protected SystemSearchString _searchString

_stringMatcher

protected SystemSearchStringMatcher _stringMatcher

_isFileSearch

protected boolean _isFileSearch

_fileNameMatcher

protected SystemSearchFileNameMatcher _fileNameMatcher

_classificationString

protected String _classificationString
Constructor Detail

LocalSearchHandler

public LocalSearchHandler(IHostSearchResultConfiguration searchConfig,
                          IFileService fileService)
Constructor for local search handler.

Parameters:
searchConfig - a search configuration.
Method Detail

search

public void search(IProgressMonitor monitor)
Specified by:
search in interface ISearchHandler

isDone

public boolean isDone()

cancel

public void cancel(IProgressMonitor monitor)
Specified by:
cancel in interface ISearchHandler

doesFilePatternMatch

protected boolean doesFilePatternMatch(String compareStr)

doesClassificationMatch

protected boolean doesClassificationMatch(String absolutePath)
Returns whether classification matches.

Parameters:
absolutePath - the absolute path of the file for which we want to check classification.
Returns:
true if the classification matches, false otherwise.

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.