public class RecordingJob<EventAtom> extends CompositeJob<EventAtom>
RecordingCommand
if there is a TransactionalEditingDomain
available.Modifier and Type | Class and Description |
---|---|
static class |
RecordingJob.RecordingJobContextData
Data transfer class for storing the commands created by recording jobs.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RECORDING_JOB |
static java.lang.String |
RECORDING_JOB_SESSION_DATA_KEY |
static java.lang.String |
TRANSACTIONAL_EDITING_DOMAIN |
Constructor and Description |
---|
RecordingJob(Job<EventAtom> recordedJob)
Creates a new recording job associated with the given state and processor.
|
RecordingJob(Job<EventAtom> recordedJob,
EventAtomEditingDomainProvider<EventAtom> provider) |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(Activation<? extends EventAtom> activation,
Context context)
Executes the action on the activation using the supplied context.
|
protected java.lang.Object |
findDomainTarget(Activation<? extends EventAtom> activation,
Context context)
This method is used to find a target that can be used for getting the
TransactionalEditingDomain . |
handleError
getActivationState
public static final java.lang.String TRANSACTIONAL_EDITING_DOMAIN
public static final java.lang.String RECORDING_JOB
public static final java.lang.String RECORDING_JOB_SESSION_DATA_KEY
public RecordingJob(Job<EventAtom> recordedJob)
recordedJob
- public RecordingJob(Job<EventAtom> recordedJob, EventAtomEditingDomainProvider<EventAtom> provider)
protected void execute(Activation<? extends EventAtom> activation, Context context)
Job
execute
in class CompositeJob<EventAtom>
protected java.lang.Object findDomainTarget(Activation<? extends EventAtom> activation, Context context)
TransactionalEditingDomain
.
It tries to retrieve the domain from the context, otherwise it tries to find an EObject parameter in
the event atom of the activation.activation
- context
-