|
JIVE Platform Release 0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.buffalo.cse.jive.ui.search.AbstractJiveSearchQuery edu.buffalo.cse.jive.ui.search.ExecutionHistorySearchQuery
public abstract class ExecutionHistorySearchQuery
An abstract search query over the execution history of an
IJiveDebugTarget
. The query implements the
SequenceModel.EventVisitor
interface, but leaves the details up to
extending classes. This class is responsible for traversing the sequence
model and periodically checking if the user has canceled the query. It also
provides a mechanism for adding matches to the result set.
addMatch(EventOccurrence)
Constructor Summary | |
---|---|
protected |
ExecutionHistorySearchQuery()
Creates an execution history query. |
Method Summary | |
---|---|
protected void |
addMatch(EventOccurrence event)
Adds a search query match to the search result. |
Class<? extends Object> |
getResultType()
Returns the type of search result matches collected by the search query. |
IStatus |
performSearch(IProgressMonitor monitor,
IJiveDebugTarget target)
Performs the query over the given IJiveDebugTarget using the
supplied IProgressMonitor . |
Methods inherited from class edu.buffalo.cse.jive.ui.search.AbstractJiveSearchQuery |
---|
canRerun, canRunInBackground, createSearchResult, getLabel, getSearchResult, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.buffalo.cse.jive.sequence.SequenceModel.EventVisitor |
---|
visit, visit |
Methods inherited from interface edu.buffalo.cse.jive.ui.search.IJiveSearchQuery |
---|
getImageDescriptor, getResultLabel |
Constructor Detail |
---|
protected ExecutionHistorySearchQuery()
Method Detail |
---|
public IStatus performSearch(IProgressMonitor monitor, IJiveDebugTarget target)
IJiveSearchQuery
IJiveDebugTarget
using the
supplied IProgressMonitor
. Implementors can call this method
for each target in existence.
performSearch
in interface IJiveSearchQuery
monitor
- the progress monitor of the searchtarget
- the target to search
public Class<? extends Object> getResultType()
IJiveSearchQuery
NOTE: This will be changed in the future. For now, return Event.class for a result containing matches of mixed event types or return the specific class literal for a result containing matches of a single event type (e.g., AssignEvent.class).
getResultType
in interface IJiveSearchQuery
protected void addMatch(EventOccurrence event)
event
- the match to add to the search result
|
JIVE Platform Release 0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |