org.eclipse.update.search
Class UpdateSearchRequest
java.lang.Object
org.eclipse.update.search.UpdateSearchRequest
Deprecated. The org.eclipse.update component has been replaced by Equinox p2. This
provisional API was never promoted to stable API, and may be removed from a future release of the platform.
-
public class UpdateSearchRequest
- extends
Object
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 'accept' 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.
-
Since:
- 3.0
-
See Also:
-
UpdateSearchScope
,
IUpdateSearchCategory
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
UpdateSearchRequest
public UpdateSearchRequest(
IUpdateSearchCategory category,
UpdateSearchScope scope)
-
Deprecated.
- The constructor that accepts the search category and
scope objects.
-
Parameters:
-
category
- the actual search pattern that should be applied -
scope
- a list of sites that need to be scanned during the search
createDefaultUpdatesSearchCategory
public static
IUpdateSearchCategory createDefaultUpdatesSearchCategory()
-
Deprecated.
- Returns an updates search category for use in discovering updates
to existing function on update sites.
-
-
Returns:
- an updates search category
-
Since:
- 3.1
createDefaultSiteSearchCategory
public static
IUpdateSearchCategory createDefaultSiteSearchCategory()
-
Deprecated.
- Returns a site search category for use in discovering new function on update sites.
-
-
Returns:
- a site search category
-
Since:
- 3.1
getCategory
public
IUpdateSearchCategory getCategory()
-
Deprecated.
- Returns the search catagory used in this request.
-
-
Returns:
- the search category
getScope
public
UpdateSearchScope getScope()
-
Deprecated.
- Returns the scope of this search request.
-
-
Returns:
- search scope
addFilter
public void addFilter(
IUpdateSearchFilter filter)
-
Deprecated.
- Adds a filter to this request. This method does nothing
if search is alrady in progress.
-
-
Parameters:
-
filter
- the filter -
See Also:
-
removeFilter(org.eclipse.update.search.IUpdateSearchFilter)
removeFilter
public void removeFilter(
IUpdateSearchFilter filter)
-
Deprecated.
- Removes the filter from this request. This method does
nothing if search is alrady in progress.
-
-
Parameters:
-
filter
- the filter to remove -
See Also:
-
addFilter(org.eclipse.update.search.IUpdateSearchFilter)
setScope
public void setScope(
UpdateSearchScope scope)
-
Deprecated.
- Sets the scope object. It is possible to reuse the search request
object by modifying the scope and re-running the search.
-
-
Parameters:
-
scope
- the new search scope
isSearchInProgress
public boolean isSearchInProgress()
-
Deprecated.
- Tests whether this search request is current running.
-
-
Returns:
-
true if the search is currently running, false otherwise.
performSearch
public void performSearch(
IUpdateSearchResultCollector collector,
IProgressMonitor monitor)
throws
CoreException,
OperationCanceledException
-
Deprecated.
- Runs the search using the category and scope configured into
this request. As results arrive, they are passed to the
search result collector object.
-
-
Parameters:
-
collector
- matched features are passed to this object -
monitor
- used to track the search progress
-
Throws:
-
CoreException
-
OperationCanceledException
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.