|
org.eclipse.emf.workspace.impl
Class EMFOperationTransaction
java.lang.Object
org.eclipse.emf.transaction.impl.TransactionImpl
org.eclipse.emf.transaction.impl.EMFCommandTransaction
org.eclipse.emf.workspace.impl.EMFOperationTransaction
-
All Implemented Interfaces:
-
InternalTransaction,
Transaction
-
public class EMFOperationTransaction
- extends
EMFCommandTransaction
A specialized transaction implementation that knows the
EMFCommandOperation that it supports. It is used to communicate
trigger information back to the command operation to support undo/redo.
Methods inherited from class org.eclipse.emf.transaction.impl.
TransactionImpl
|
abort,
add,
addTriggers,
close,
collectsNotifications,
commit,
endPrivileged,
getChangeDescription,
getDefaultOptions,
getEditingDomain,
getInternalDomain,
getLifecycle,
getNotifications,
getOptions,
getOwner,
getParent,
getRoot,
getStatus,
getTriggers,
hasOption,
isAborted,
isActive,
isNotificationEnabled,
isReadOnly,
isRollingBack,
isTriggerEnabled,
isUndoEnabled,
isUnprotected,
isValidationEnabled,
pause,
resume,
rollback,
setParent,
setStatus,
start,
startPrivileged,
toString,
validate,
yield
|
EMFOperationTransaction
public EMFOperationTransaction(
Command command,
InternalTransactionalEditingDomain domain,
Map<?,?> options)
- Initializes me with the command, my editing domain, and my options.
-
Parameters:
-
command - a command that is being wrapped in an
EMFCommandOperation
-
domain - my editing domain -
options - my options
getOperation
public
EMFCommandOperation getOperation()
- Obtains the operation that wraps my command.
-
-
Returns:
- my operation
setOperation
public void setOperation(
EMFCommandOperation operation)
- Sets the operation that wraps my command.
-
-
Parameters:
-
operation - my operation
|
|