Klasse PatternSearchJob

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.search.PatternSearchJob
Alle implementierten Schnittstellen:
IJob
Bekannte direkte Unterklassen:
SubTypeSearchJob

public class PatternSearchJob extends Object implements IJob
  • Felddetails

    • pattern

      protected SearchPattern pattern
    • scope

      protected IJavaSearchScope scope
    • participant

      protected SearchParticipant participant
    • requestor

      protected IndexQueryRequestor requestor
    • resolveDocumentForJar

      protected boolean resolveDocumentForJar
    • resolveDocumentForSourceFiles

      protected boolean resolveDocumentForSourceFiles
    • areIndexesReady

      protected boolean areIndexesReady
    • executionTime

      protected AtomicLong executionTime
    • 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

      public boolean belongsTo(String jobFamily)
      Beschreibung aus Schnittstelle kopiert: IJob
      Answer true if the job belongs to a given family (tag)
      Angegeben von:
      belongsTo in Schnittstelle IJob
    • 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.
      Angegeben von:
      cancel in Schnittstelle IJob
    • ensureReadyToRun

      public void ensureReadyToRun()
      Beschreibung aus Schnittstelle kopiert: IJob
      Ensures that this job is ready to run.
      Angegeben von:
      ensureReadyToRun in Schnittstelle IJob
    • execute

      public boolean execute(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
      Beschreibung aus Schnittstelle kopiert: IJob
      Execute the current job, answer whether it was successful.
      Angegeben von:
      execute in Schnittstelle IJob
    • getIndexes

      public Index[] getIndexes(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
    • waitNeeded

      public boolean waitNeeded()
      Beschreibung aus Schnittstelle kopiert: IJob
      Answers if we need some sleep after index write operations. Default implementation returns false.
      Angegeben von:
      waitNeeded in Schnittstelle IJob
      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

      public String getJobFamily()
      Beschreibung aus Schnittstelle kopiert: IJob
      Returns this job's family
      Angegeben von:
      getJobFamily in Schnittstelle IJob
    • search

      public boolean search(Index index, IndexQueryRequestor queryRequestor, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object