Class BslResolveCrossReferencesJob

  • All Implemented Interfaces:
    Comparable, 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 String JOB_FAMILY
      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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean belongsTo​(Object family)  
      static Collection<BslResolveCrossReferencesJob> 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
    • Field Detail

      • 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:
        Constant Field Values
    • Constructor Detail

      • 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 Detail

      • 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