Class BslResolveCrossReferencesJob

java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
com._1c.g5.v8.dt.bsl.resource.BslResolveCrossReferencesJob
All Implemented Interfaces:
Comparable<org.eclipse.core.internal.jobs.InternalJob>, org.eclipse.core.runtime.IAdaptable

public class BslResolveCrossReferencesJob extends org.eclipse.core.runtime.jobs.Job
Special Job for separetly running LazyLinkingResource.resolveLazyCrossReferences(CancelIndicator) not in ui thread
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Prefix of the family objects.

    Fields inherited from class org.eclipse.core.runtime.jobs.Job

    ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING

    Fields inherited from class org.eclipse.core.internal.jobs.InternalJob

    manager
  • Constructor Summary

    Constructors
    Constructor
    Description
    BslResolveCrossReferencesJob(org.eclipse.xtext.linking.lazy.LazyLinkingResource resource, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    belongsTo(Object family)
     
    findJobsByResource(org.eclipse.xtext.linking.lazy.LazyLinkingResource resource)
    Gets all BslResolveCrossReferencesJob for actual resource
    protected org.eclipse.core.runtime.IStatus
    run(org.eclipse.core.runtime.IProgressMonitor monitor)
     

    Methods inherited from class org.eclipse.core.runtime.jobs.Job

    addJobChangeListener, cancel, canceling, create, create, createSystem, createSystem, done, getJobGroup, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, join, removeJobChangeListener, schedule, schedule, setJobGroup, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, toString, wakeUp, wakeUp, yieldRule

    Methods inherited from class org.eclipse.core.internal.jobs.InternalJob

    compareTo

    Methods inherited from class org.eclipse.core.runtime.PlatformObject

    getAdapter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • JOB_FAMILY

      public static final String JOB_FAMILY
      Prefix of the family objects. Full family object is string object equals to "JOB_FAMILY + resource.getURI().toString()"
      See Also:
  • Constructor Details

    • BslResolveCrossReferencesJob

      public BslResolveCrossReferencesJob(org.eclipse.xtext.linking.lazy.LazyLinkingResource resource, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
      Constructor
      Parameters:
      resource - actual LazyLinkingResource for running method LazyLinkingResource.resolveLazyCrossReferences(CancelIndicator), cannot be null
      cancelIndicator - actual indicator for stopping computation, cannot be null
  • Method Details

    • findJobsByResource

      public static Collection<BslResolveCrossReferencesJob> findJobsByResource(org.eclipse.xtext.linking.lazy.LazyLinkingResource resource)
      Gets all BslResolveCrossReferencesJob for actual resource
      Parameters:
      resource - for getting all BslResolveCrossReferencesJob jobs, cannot be null
      Returns:
      all BslResolveCrossReferencesJob for actual resource or empty collection of there is no jobs, never null
    • belongsTo

      public boolean belongsTo(Object family)
      Overrides:
      belongsTo in class org.eclipse.core.runtime.jobs.Job
    • run

      protected org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
      Specified by:
      run in class org.eclipse.core.runtime.jobs.Job