|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mylar.tasks.core.QueryHitCollector
public class QueryHitCollector
Collects QueryHits resulting from repository search
Field Summary | |
---|---|
private static java.lang.String |
DONE
The string to display to the user when the query is done |
private static java.lang.String |
MATCH
The string to display to the user when we have 1 match |
private int |
matchCount
The number of matches found |
private static java.lang.String |
MATCHES
The string to display to the user when we have multiple or no matches |
private org.eclipse.core.runtime.IProgressMonitor |
monitor
The progress monitor for the search operation |
private java.util.List<AbstractQueryHit> |
results
|
private static java.lang.String |
STARTING
The string to display to the user while querying |
private TaskList |
taskList
|
Constructor Summary | |
---|---|
QueryHitCollector(TaskList tasklist)
|
Method Summary | |
---|---|
void |
aboutToStart(int startMatchCount)
|
void |
accept(AbstractQueryHit hit)
|
void |
addMatch(AbstractQueryHit hit)
|
void |
done()
|
protected java.lang.String |
getFormattedMatchesString(int count)
|
java.util.List<AbstractQueryHit> |
getHits()
|
org.eclipse.core.runtime.IProgressMonitor |
getProgressMonitor()
|
void |
setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<AbstractQueryHit> results
private org.eclipse.core.runtime.IProgressMonitor monitor
private int matchCount
private static final java.lang.String STARTING
private static final java.lang.String MATCH
private static final java.lang.String MATCHES
private static final java.lang.String DONE
private TaskList taskList
Constructor Detail |
---|
public QueryHitCollector(TaskList tasklist)
Method Detail |
---|
public void aboutToStart(int startMatchCount) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void accept(AbstractQueryHit hit) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void done()
protected java.lang.String getFormattedMatchesString(int count)
public org.eclipse.core.runtime.IProgressMonitor getProgressMonitor()
public void setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor monitor)
public void addMatch(AbstractQueryHit hit)
public java.util.List<AbstractQueryHit> getHits()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |