Klasse PatternSearchJob
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.PatternSearchJob
- Alle implementierten Schnittstellen:
IJob
- Bekannte direkte Unterklassen:
SubTypeSearchJob
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected boolean
static final String
static final boolean
protected AtomicLong
protected SearchParticipant
protected SearchPattern
protected IndexQueryRequestor
protected boolean
protected boolean
protected IJavaSearchScope
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.search.processing.IJob
CancelIfNotReady, COMPLETE, FAILED, ForceImmediate, WaitUntilReady
-
Konstruktorübersicht
KonstruktorBeschreibungPatternSearchJob
(SearchPattern pattern, SearchParticipant participant, IJavaSearchScope scope, boolean resolveDocumentForJar, boolean resolveDocumentForSourceFiles, IndexQueryRequestor requestor) Create a search job with the specified search pattern.PatternSearchJob
(SearchPattern pattern, SearchParticipant participant, IJavaSearchScope scope, IndexQueryRequestor requestor) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
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.
-
Felddetails
-
pattern
-
scope
-
participant
-
requestor
-
resolveDocumentForJar
protected boolean resolveDocumentForJar -
resolveDocumentForSourceFiles
protected boolean resolveDocumentForSourceFiles -
areIndexesReady
protected boolean areIndexesReady -
executionTime
-
ENABLE_PARALLEL_SEARCH
- Siehe auch:
-
ENABLE_PARALLEL_SEARCH_DEFAULT
public static final boolean ENABLE_PARALLEL_SEARCH_DEFAULT- Siehe auch:
-
-
Konstruktordetails
-
PatternSearchJob
public PatternSearchJob(SearchPattern pattern, SearchParticipant participant, IJavaSearchScope scope, IndexQueryRequestor requestor) -
PatternSearchJob
public PatternSearchJob(SearchPattern pattern, SearchParticipant participant, IJavaSearchScope scope, boolean resolveDocumentForJar, boolean resolveDocumentForSourceFiles, IndexQueryRequestor requestor) Create a search job with the specified search pattern.- Parameter:
resolveDocumentForJar
- whether to resolve the document name of a result entry if it comes to a JAR library.resolveDocumentForSourceFiles
- whether to resolve the document name of a result entry if it comes from a project's source files.
-
-
Methodendetails
-
belongsTo
Beschreibung aus Schnittstelle kopiert:IJob
Answer true if the job belongs to a given family (tag) -
cancel
public void cancel()Beschreibung aus Schnittstelle kopiert:IJob
Asks this job to cancel its execution. The cancellation can take an undertermined amount of time. -
ensureReadyToRun
public void ensureReadyToRun()Beschreibung aus Schnittstelle kopiert:IJob
Ensures that this job is ready to run.- Angegeben von:
ensureReadyToRun
in SchnittstelleIJob
-
execute
public boolean execute(org.eclipse.core.runtime.IProgressMonitor progressMonitor) Beschreibung aus Schnittstelle kopiert:IJob
Execute the current job, answer whether it was successful. -
getIndexes
-
waitNeeded
public boolean waitNeeded()Beschreibung aus Schnittstelle kopiert:IJob
Answers if we need some sleep after index write operations. Default implementation returnsfalse
.- Angegeben von:
waitNeeded
in SchnittstelleIJob
- Gibt zurück:
- 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
Beschreibung aus Schnittstelle kopiert:IJob
Returns this job's family- Angegeben von:
getJobFamily
in SchnittstelleIJob
-
search
public boolean search(Index index, IndexQueryRequestor queryRequestor, org.eclipse.core.runtime.IProgressMonitor progressMonitor) -
toString
-