Class EnterpriseDomainJob

java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.core.internal.jobs.InternalJob
org.eclipse.core.runtime.jobs.Job
org.eclipse.core.internal.resources.InternalWorkspaceJob
org.eclipse.core.resources.WorkspaceJob
org.enterprisedomain.classmaker.jobs.EnterpriseDomainJob
All Implemented Interfaces:
Comparable<org.eclipse.core.internal.jobs.InternalJob>, org.eclipse.core.runtime.IAdaptable, Worker
Direct Known Subclasses:
ContainerJob, DelegatingJob, EcoreGenerator, EcoreGenerator.CodeGenerationJob, EcoreGenerator.GenModelGenerationJob, GenModelSetupJob

public abstract class EnterpriseDomainJob extends org.eclipse.core.resources.WorkspaceJob implements Worker
  • Constructor Details

    • EnterpriseDomainJob

      public EnterpriseDomainJob(String name, int depth, long stateTimestamp)
  • Method Details

    • getAdapter

      public Object getAdapter(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(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)
    • getJob

      public static EnterpriseDomainJob getJob(Worker worker)
    • getJobs

      public static org.eclipse.emf.common.util.EList<EnterpriseDomainJob> getJobs(org.eclipse.emf.common.util.EList<Worker> workers)
    • 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(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
    • isExclusive

      public boolean isExclusive()
    • setExclusive

      public void setExclusive(boolean exclusive)
    • getAfterJob

      public Class<? extends EnterpriseDomainJob> getAfterJob()
      Returns:
      job class after which to execute this job
    • setAfterJob

      public void setAfterJob(Class<? extends EnterpriseDomainJob> after)
    • getProject

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

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

      public EnterpriseDomainJob getNextJob()
    • setNextJob

      public void setNextJob(EnterpriseDomainJob nextJob)
    • 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 Properties getProperties()
      Specified by:
      getProperties in interface Worker