|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.update.search.UpdateSearchRequest
This class is central to update search. The search pattern is encapsulated in update search category, while the search scope is defined in the scope object. When these two objects are defined and set, search can be performed using the provided method. Search results are reported to the result collector, while search progress is tracked using the progress monitor.
Classes that implement IUpdateSearchResultCollector should call 'filter' to test if the match should be accepted according to the filters added to the request.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Constructor Summary | |
UpdateSearchRequest(IUpdateSearchCategory category,
UpdateSearchScope scope)
The constructor that accepts the search category and scope objects. |
Method Summary | |
void | addFilter(IUpdateSearchFilter filter)
Adds a filter to this request. |
IUpdateSearchCategory | getCategory()
Returns the search catagory used in this request. |
UpdateSearchScope | getScope()
Returns the scope of this search request. |
boolean | isSearchInProgress()
Tests whether this search request is current running. |
void | performSearch(IUpdateSearchResultCollector collector,
IProgressMonitor monitor)
Runs the search using the category and scope configured into this request. |
void | removeFilter(IUpdateSearchFilter filter)
Removes the filter from this request. |
void | setScope(UpdateSearchScope scope)
Sets the scope object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UpdateSearchRequest(IUpdateSearchCategory category, UpdateSearchScope scope)
Method Detail |
public IUpdateSearchCategory getCategory()
public UpdateSearchScope getScope()
public void addFilter(IUpdateSearchFilter filter)
public void removeFilter(IUpdateSearchFilter filter)
public void setScope(UpdateSearchScope scope)
public boolean isSearchInProgress()
public void performSearch(IUpdateSearchResultCollector collector, IProgressMonitor monitor) throws CoreException
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.