| java.lang.Object org.netbeans.modules.search.SearchTask
SearchTask | final class SearchTask implements Runnable,Cancellable(Code) | | Task performing search.
author: Peter Zavadsky author: Marian Petras |
SearchTask | public SearchTask(SearchScope searchScope, BasicSearchCriteria basicSearchCriteria, List<SearchType> customizedSearchTypes)(Code) | | Creates a new SearchTask .
Parameters: searchScope - defines scope of the search task Parameters: basicSearchCriteria - basic search criteria Parameters: customizedSearchTypes - search types |
cancel | public boolean cancel()(Code) | | Cancel processing of the task.
true if the task was succesfully cancelled, false if jobcan't be cancelled for some reason See Also: org.openide.util.Cancellable.cancel |
matchingObjectFound | void matchingObjectFound(Object object)(Code) | | Called when a matching object is found by the SearchGroup .
Notifies the result model of the found object and stops searching
if number of the found objects reached the limit.
Parameters: object - found matching object |
notifyWhenFinished | boolean notifyWhenFinished()(Code) | | Returns value of attribute notifyWhenFinished .
current value of the attribute |
run | public void run()(Code) | | Runs the search task.
|
stop | void stop(boolean notifyWhenFinished)(Code) | | Stops this search task.
This method also sets a value of attribute
notifyWhenFinished . This method may be called multiple
times (even if this task is already stopped) to change the value
of the attribute.
Parameters: notifyWhenFinished - new value of attributenotifyWhenFinished |
|
|