|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InternalTransactionalCommandStack
An internal interface that must be provided by any implementation of the public
TransactionalCommandStack interface, in order to function correctly in the
transactional editing domain framework.
| Method Summary | |
|---|---|
EMFCommandTransaction |
createTransaction(org.eclipse.emf.common.command.Command command,
Map<?,?> options)
Creates a read/write transaction in my editing domain for the purpose of executing the specified command. |
void |
dispose()
Disposes of my state and any additional resources that I may be retaining. |
void |
executeTriggers(org.eclipse.emf.common.command.Command command,
List<org.eclipse.emf.common.command.Command> triggers,
Map<?,?> options)
Executes the specified list of trigger commands. |
InternalTransactionalEditingDomain |
getDomain()
Obtains the editing domain in which I create transactions. |
void |
setEditingDomain(InternalTransactionalEditingDomain domain)
Assigns the editing domain in which I create transactions. |
| Methods inherited from interface org.eclipse.emf.transaction.TransactionalCommandStack |
|---|
execute, getExceptionHandler, setExceptionHandler |
| Methods inherited from interface org.eclipse.emf.common.command.CommandStack |
|---|
addCommandStackListener, canRedo, canUndo, execute, flush, getMostRecentCommand, getRedoCommand, getUndoCommand, redo, removeCommandStackListener, undo |
| Method Detail |
|---|
InternalTransactionalEditingDomain getDomain()
createTransaction(Command, Map)void setEditingDomain(InternalTransactionalEditingDomain domain)
domain - my editing domaincreateTransaction(Command, Map)
EMFCommandTransaction createTransaction(org.eclipse.emf.common.command.Command command,
Map<?,?> options)
throws InterruptedException
command - a command that I need to executeoptions - the options to apply to the resulting transaction
InterruptedException - if the current thread is interrupted while
waiting for the transaction to startgetDomain()
void executeTriggers(org.eclipse.emf.common.command.Command command,
List<org.eclipse.emf.common.command.Command> triggers,
Map<?,?> options)
throws InterruptedException,
RollbackException
command; they must not be "piggy-backed" on
the currently active transaction.
command - the command whose execution triggered additional commands
(from pre-commit listeners)triggers - a list of zero or more Commands to execute.
If there are none, then no transaction needs to be startedoptions - the options to apply to the child transaction
InterruptedException - if the current thread is interrupted while
waiting for the trigger transaction to start
RollbackException - if the trigger transaction rolls back on commitResourceSetListener.transactionAboutToCommit(org.eclipse.emf.transaction.ResourceSetChangeEvent),
createTransaction(Command, Map)void dispose()
editing domain
is disposed.
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||