Class EnterpriseDomainJob

    • Field Summary

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

        ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
    • Constructor Summary

      Constructors 
      Constructor Description
      EnterpriseDomainJob​(java.lang.String name, int depth, long stateTimestamp)  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void addListener()  
      boolean belongsTo​(java.lang.Object family)  
      java.lang.Object getAdapter​(java.lang.Class adapter)  
      int getBuildKind()  
      State getContributionState()  
      abstract Stage getDirtyStage()
      Returns an earliest stage that becomes dirty after execution of this job.
      static EnterpriseDomainJob getJob​(Worker worker)  
      EnterpriseDomainJob getNextJob()  
      org.eclipse.core.resources.IProject getProject()  
      java.util.Properties getProperties()  
      org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()  
      abstract Stage getResultStage()
      Returns a stage in which contribution state remains after execution of this job.
      long getStateTimestamp()  
      boolean hasErrors​(org.eclipse.core.runtime.IStatus status)  
      boolean isChangeRule()  
      boolean isCommitState()  
      static boolean joinJob​(java.lang.String name)  
      static org.eclipse.core.runtime.IStatus joinManualBuild​(org.eclipse.core.runtime.IProgressMonitor monitor)  
      void removeListener()  
      org.eclipse.core.runtime.IStatus runInWorkspace​(org.eclipse.core.runtime.IProgressMonitor monitor)  
      void setBuildKind​(int buildKind)  
      void setChangeRule​(boolean changeRule)  
      void setCommitState​(boolean commitState)  
      void setContributionState​(State state)  
      void setNextJob​(EnterpriseDomainJob nextJob)  
      void setProgressProvider​(org.eclipse.core.runtime.jobs.ProgressProvider progressProvider)  
      void setProject​(org.eclipse.core.resources.IProject project)  
      void setResourceSet​(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)  
      void setStateTimestamp​(long stateTimestamp)  
      abstract org.eclipse.core.runtime.IStatus work​(org.eclipse.core.runtime.IProgressMonitor monitor)  
      • Methods inherited from class org.eclipse.core.internal.resources.InternalWorkspaceJob

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

        addJobChangeListener, cancel, create, create, createSystem, 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 java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EnterpriseDomainJob

        public EnterpriseDomainJob​(java.lang.String name,
                                   int depth,
                                   long stateTimestamp)
    • Method Detail

      • getAdapter

        public java.lang.Object getAdapter​(java.lang.Class adapter)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdaptable
        Overrides:
        getAdapter in class org.eclipse.core.runtime.PlatformObject
      • joinJob

        public static boolean joinJob​(java.lang.String name)
      • runInWorkspace

        public org.eclipse.core.runtime.IStatus runInWorkspace​(org.eclipse.core.runtime.IProgressMonitor monitor)
                                                        throws org.eclipse.core.runtime.CoreException
        Specified by:
        runInWorkspace in class org.eclipse.core.resources.WorkspaceJob
        Throws:
        org.eclipse.core.runtime.CoreException
      • hasErrors

        public boolean hasErrors​(org.eclipse.core.runtime.IStatus status)
      • work

        public abstract org.eclipse.core.runtime.IStatus work​(org.eclipse.core.runtime.IProgressMonitor monitor)
                                                       throws org.eclipse.core.runtime.CoreException
        Specified by:
        work in interface Worker
        Throws:
        org.eclipse.core.runtime.CoreException
      • belongsTo

        public boolean belongsTo​(java.lang.Object family)
        Overrides:
        belongsTo in class org.eclipse.core.runtime.jobs.Job
      • setProgressProvider

        public void setProgressProvider​(org.eclipse.core.runtime.jobs.ProgressProvider progressProvider)
      • joinManualBuild

        public static org.eclipse.core.runtime.IStatus joinManualBuild​(org.eclipse.core.runtime.IProgressMonitor monitor)
      • setBuildKind

        public void setBuildKind​(int buildKind)
      • getBuildKind

        public int getBuildKind()
        Returns:
        build kind
        See Also:
        IncrementalProjectBuilder.FULL_BUILD, IncrementalProjectBuilder.AUTO_BUILD, IncrementalProjectBuilder.CLEAN_BUILD, IncrementalProjectBuilder.INCREMENTAL_BUILD
      • getProject

        public org.eclipse.core.resources.IProject getProject()
      • setProject

        public void setProject​(org.eclipse.core.resources.IProject project)
      • removeListener

        public void removeListener()
      • addListener

        public void addListener()
      • setContributionState

        public void setContributionState​(State state)
      • getContributionState

        public State getContributionState()
      • getResultStage

        public abstract Stage getResultStage()
        Returns a stage in which contribution state remains after execution of this job.
        Returns:
        job stage
      • getDirtyStage

        public abstract Stage getDirtyStage()
        Returns an earliest stage that becomes dirty after execution of this job.
        Returns:
        dirty stage
      • getStateTimestamp

        public long getStateTimestamp()
      • setStateTimestamp

        public void setStateTimestamp​(long stateTimestamp)
      • isCommitState

        public boolean isCommitState()
      • setCommitState

        public void setCommitState​(boolean commitState)
      • setResourceSet

        public void setResourceSet​(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
      • getResourceSet

        public org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
      • isChangeRule

        public boolean isChangeRule()
      • setChangeRule

        public void setChangeRule​(boolean changeRule)
      • getProperties

        public java.util.Properties getProperties()
        Specified by:
        getProperties in interface Worker