Class PatternSearchJob
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.PatternSearchJob
- All Implemented Interfaces:
IJob
- Direct Known Subclasses:
SubTypeSearchJob
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
static String
static boolean
protected AtomicLong
protected SearchParticipant
protected SearchPattern
protected IndexQueryRequestor
protected IJavaSearchScope
Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.core.search.processing.IJob
CancelIfNotReady, COMPLETE, FAILED, ForceImmediate, WaitUntilReady
-
Constructor Summary
ConstructorDescriptionPatternSearchJob(SearchPattern pattern, SearchParticipant participant, IJavaSearchScope scope, IndexQueryRequestor requestor)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Answer true if the job belongs to a given family (tag)void
cancel()
Asks this job to cancel its execution.void
Ensures that this job is ready to run.boolean
execute(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 familyboolean
search(Index index, IndexQueryRequestor queryRequestor, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
toString()
boolean
Answers 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:
- Constant Field Values
-
ENABLE_PARALLEL_SEARCH_DEFAULT
public static final boolean ENABLE_PARALLEL_SEARCH_DEFAULT- See Also:
- Constant Field Values
-
-
Constructor Details
-
PatternSearchJob
public PatternSearchJob(SearchPattern pattern, SearchParticipant participant, IJavaSearchScope scope, IndexQueryRequestor requestor)
-
-
Method Details
-
belongsTo
Description copied from interface:IJob
Answer true if the job belongs to a given family (tag) -
cancel
public void cancel()Description copied from interface:IJob
Asks this job to cancel its execution. The cancellation can take an undertermined amount of time. -
ensureReadyToRun
public void ensureReadyToRun()Description copied from interface:IJob
Ensures that this job is ready to run.- Specified by:
ensureReadyToRun
in interfaceIJob
-
execute
public boolean execute(org.eclipse.core.runtime.IProgressMonitor progressMonitor)Description copied from interface:IJob
Execute the current job, answer whether it was successful. -
getIndexes
-
waitNeeded
public boolean waitNeeded()Description copied from interface:IJob
Answers if we need some sleep after index write operations. Default implementation returnsfalse
.- Specified by:
waitNeeded
in 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:IJob
Returns this job's family- Specified by:
getJobFamily
in interfaceIJob
-
search
public boolean search(Index index, IndexQueryRequestor queryRequestor, org.eclipse.core.runtime.IProgressMonitor progressMonitor) -
toString
-