Class PatternSearchJob
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.PatternSearchJob
- All Implemented Interfaces:
IJob
- Direct Known Subclasses:
SubTypeSearchJob
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanstatic final Stringstatic final booleanprotected AtomicLongprotected SearchParticipantprotected SearchPatternprotected IndexQueryRequestorprotected IJavaSearchScopeFields inherited from interface org.aspectj.org.eclipse.jdt.internal.core.search.processing.IJob
CancelIfNotReady, COMPLETE, FAILED, ForceImmediate, WaitUntilReady -
Constructor Summary
ConstructorsConstructorDescriptionPatternSearchJob(SearchPattern pattern, SearchParticipant participant, IJavaSearchScope scope, IndexQueryRequestor requestor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAnswer true if the job belongs to a given family (tag)voidcancel()Asks this job to cancel its execution.voidEnsures that this job is ready to run.booleanexecute(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Execute the current job, answer whether it was successful.Index[]getIndexes(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Returns this job's familybooleansearch(Index index, IndexQueryRequestor queryRequestor, org.eclipse.core.runtime.IProgressMonitor progressMonitor) toString()booleanAnswers if we need some sleep after index write operations.
-
Field Details
-
pattern
-
scope
-
participant
-
requestor
-
areIndexesReady
protected boolean areIndexesReady -
executionTime
-
ENABLE_PARALLEL_SEARCH
- See Also:
-
ENABLE_PARALLEL_SEARCH_DEFAULT
public static final boolean ENABLE_PARALLEL_SEARCH_DEFAULT- See Also:
-
-
Constructor Details
-
PatternSearchJob
public PatternSearchJob(SearchPattern pattern, SearchParticipant participant, IJavaSearchScope scope, IndexQueryRequestor requestor)
-
-
Method Details
-
belongsTo
Description copied from interface:IJobAnswer true if the job belongs to a given family (tag) -
cancel
public void cancel()Description copied from interface:IJobAsks this job to cancel its execution. The cancellation can take an undertermined amount of time. -
ensureReadyToRun
public void ensureReadyToRun()Description copied from interface:IJobEnsures that this job is ready to run.- Specified by:
ensureReadyToRunin interfaceIJob
-
execute
public boolean execute(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:IJobExecute the current job, answer whether it was successful. -
getIndexes
-
waitNeeded
public boolean waitNeeded()Description copied from interface:IJobAnswers if we need some sleep after index write operations. Default implementation returnsfalse.- Specified by:
waitNeededin interfaceIJob- Returns:
- true if the job manager should sleep a bit after this job is done to avoid IO tasks overloading OS (which could cause UI freezes etc).
-
getJobFamily
Description copied from interface:IJobReturns this job's family- Specified by:
getJobFamilyin interfaceIJob
-
search
public boolean search(Index index, IndexQueryRequestor queryRequestor, org.eclipse.core.runtime.IProgressMonitor progressMonitor) -
toString
-