org.eclipse.emf.workspace.impl
Class NonEMFTransaction
java.lang.Object
org.eclipse.emf.transaction.impl.TransactionImpl
org.eclipse.emf.workspace.impl.NonEMFTransaction
- All Implemented Interfaces:
- InternalTransaction, Transaction
public class NonEMFTransaction
- extends TransactionImpl
A transaction encapsulating non-EMF changes (as represented by an
unoable operation).
|
Method Summary |
void |
commit()
Appends my non-EMF change and commits. |
| Methods inherited from class org.eclipse.emf.transaction.impl.TransactionImpl |
abort, add, addTriggers, close, collectsNotifications, endPrivileged, getChangeDescription, getDefaultOptions, getEditingDomain, getInternalDomain, 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 |
NonEMFTransaction
public NonEMFTransaction(TransactionalEditingDomain domain,
IUndoableOperation operation,
IAdaptable info)
- Initializes me with the undoable operation that represents my non-EMF
changes.
- Parameters:
domain - my editing domainoperation - the non-EMF changes that I recordinfo - the adaptable object provided to the operation when it is
executed
NonEMFTransaction
public NonEMFTransaction(TransactionalEditingDomain domain,
IUndoableOperation operation,
IAdaptable info,
Map<?,?> options)
- Initializes me with the undoable operation that represents my non-EMF
changes and transaction options.
- Parameters:
domain - my editing domainoperation - the non-EMF changes that I recordoptions - my optionsinfo - the adaptable object provided to the operation when it is
executed
commit
public void commit()
throws RollbackException
- Appends my non-EMF change and commits.
- Specified by:
commit in interface Transaction- Overrides:
commit in class TransactionImpl
- Throws:
RollbackException - if a listener or validation caused the
transaction to roll back instead of committing successfully