public class PatternSearchJob extends java.lang.Object implements IJob
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
areIndexesReady |
protected long |
executionTime |
protected SearchParticipant |
participant |
protected SearchPattern |
pattern |
protected IndexQueryRequestor |
requestor |
protected IJavaSearchScope |
scope |
CancelIfNotReady, COMPLETE, FAILED, ForceImmediate, WaitUntilReady| Constructor and Description |
|---|
PatternSearchJob(SearchPattern pattern,
SearchParticipant participant,
IJavaSearchScope scope,
IndexQueryRequestor requestor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
belongsTo(java.lang.String jobFamily)
Answer true if the job belongs to a given family (tag)
|
void |
cancel()
Asks this job to cancel its execution.
|
void |
ensureReadyToRun()
Ensures that this job is ready to run.
|
boolean |
execute(IProgressMonitor progressMonitor)
Execute the current job, answer whether it was successful.
|
Index[] |
getIndexes(IProgressMonitor progressMonitor) |
java.lang.String |
getJobFamily()
Returns this job's family
|
boolean |
search(Index index,
IProgressMonitor progressMonitor) |
java.lang.String |
toString() |
protected SearchPattern pattern
protected IJavaSearchScope scope
protected SearchParticipant participant
protected IndexQueryRequestor requestor
protected boolean areIndexesReady
protected long executionTime
public PatternSearchJob(SearchPattern pattern, SearchParticipant participant, IJavaSearchScope scope, IndexQueryRequestor requestor)
public boolean belongsTo(java.lang.String jobFamily)
IJobpublic void cancel()
IJobpublic void ensureReadyToRun()
IJobensureReadyToRun in interface IJobpublic boolean execute(IProgressMonitor progressMonitor)
IJobpublic Index[] getIndexes(IProgressMonitor progressMonitor)
public java.lang.String getJobFamily()
IJobgetJobFamily in interface IJobpublic boolean search(Index index, IProgressMonitor progressMonitor)
public java.lang.String toString()
toString in class java.lang.Object