public abstract class AbstractM2xResultHandler
extends org.eclipse.core.runtime.jobs.JobChangeAdapter
IJobChangeListener
on an
XpandJob
, CheckJob
or XtendJob
instance or a M2TJob
or M2MJob
instance
enclosing the latter and process the result produced by the same.
Clients are expected to subclass this class and override the handleResult(Job)
method for implementing the
required result handling behavior.
Constructor and Description |
---|
AbstractM2xResultHandler() |
Modifier and Type | Method and Description |
---|---|
void |
done(org.eclipse.core.runtime.jobs.IJobChangeEvent event) |
protected CheckJob |
getCheckJob()
Returns the
CheckJob behind last job that has completed execution. |
protected org.eclipse.core.runtime.jobs.Job |
getM2xJob()
Returns the last job that has completed execution and is subject to this handler.
|
protected XpandJob |
getXpandJob()
Returns the
XpandJob behind last job that has completed execution. |
protected XtendJob |
getXtendJob()
Returns the
XtendJob behind last job that has completed execution. |
protected abstract void |
handleResult(org.eclipse.core.runtime.jobs.Job m2xJob)
Invoked for handling the result of last job that has completed execution.
|
protected org.eclipse.core.runtime.jobs.Job getM2xJob()
protected XpandJob getXpandJob()
XpandJob
behind last job that has completed execution.protected XtendJob getXtendJob()
XtendJob
behind last job that has completed execution.protected CheckJob getCheckJob()
CheckJob
behind last job that has completed execution.public final void done(org.eclipse.core.runtime.jobs.IJobChangeEvent event)
done
in interface org.eclipse.core.runtime.jobs.IJobChangeListener
done
in class org.eclipse.core.runtime.jobs.JobChangeAdapter
protected abstract void handleResult(org.eclipse.core.runtime.jobs.Job m2xJob)
Clients are expected to override this method and for implementing the required result handling behavior.
m2xJob
- The last job that has completed execution - same job instance as that returned by getM2xJob()
.getM2xJob()