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
-
Nested Class Summary
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
getAdapter
(Class adapter) Class<? extends EnterpriseDomainJob>
int
abstract Stage
Returns an earliest stage that becomes dirty after execution of this job.static EnterpriseDomainJob
static org.eclipse.emf.common.util.EList<EnterpriseDomainJob>
org.eclipse.core.resources.IProject
org.eclipse.emf.ecore.resource.ResourceSet
abstract Stage
Returns a stage in which contribution state remains after execution of this job.long
boolean
hasErrors
(org.eclipse.core.runtime.IStatus status) boolean
boolean
boolean
static boolean
static org.eclipse.core.runtime.IStatus
joinManualBuild
(org.eclipse.core.runtime.IProgressMonitor monitor) void
org.eclipse.core.runtime.IStatus
runInWorkspace
(org.eclipse.core.runtime.IProgressMonitor monitor) void
setAfterJob
(Class<? extends EnterpriseDomainJob> after) void
setBuildKind
(int buildKind) void
setChangeRule
(boolean changeRule) void
setCommitState
(boolean commitState) void
setContributionState
(State state) void
setExclusive
(boolean exclusive) 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, 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
-
Constructor Details
-
EnterpriseDomainJob
-
-
Method Details
-
getAdapter
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
- Overrides:
getAdapter
in classorg.eclipse.core.runtime.PlatformObject
-
joinJob
-
runInWorkspace
public org.eclipse.core.runtime.IStatus runInWorkspace(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException - Specified by:
runInWorkspace
in classorg.eclipse.core.resources.WorkspaceJob
- Throws:
org.eclipse.core.runtime.CoreException
-
hasErrors
public boolean hasErrors(org.eclipse.core.runtime.IStatus status) -
getJob
-
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 -
belongsTo
- Overrides:
belongsTo
in classorg.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
- Returns:
- job class after which to execute this job
-
setAfterJob
-
getProject
public org.eclipse.core.resources.IProject getProject() -
setProject
public void setProject(org.eclipse.core.resources.IProject project) -
getNextJob
-
setNextJob
-
removeListener
public void removeListener() -
addListener
public void addListener() -
setContributionState
-
getContributionState
-
getResultStage
Returns a stage in which contribution state remains after execution of this job.- Returns:
- job 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
- Specified by:
getProperties
in interfaceWorker
-