|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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,
java.util.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,
java.util.List triggers,
java.util.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 |
public InternalTransactionalEditingDomain getDomain()
InternalTransactionalCommandStack.createTransaction(Command, Map)
public void setEditingDomain(InternalTransactionalEditingDomain domain)
domain
- my editing domainInternalTransactionalCommandStack.createTransaction(Command, Map)
public EMFCommandTransaction createTransaction(org.eclipse.emf.common.command.Command command, java.util.Map options) throws java.lang.InterruptedException
command
- a command that I need to executeoptions
- the options to apply to the resulting transaction
java.lang.InterruptedException
- if the current thread is interrupted while
waiting for the transaction to startInternalTransactionalCommandStack.getDomain()
public void executeTriggers(org.eclipse.emf.common.command.Command command, java.util.List triggers, java.util.Map options) throws java.lang.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 Command
s to execute.
If there are none, then no transaction needs to be startedoptions
- the options to apply to the child transaction
java.lang.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)
,
InternalTransactionalCommandStack.createTransaction(Command, Map)
public void dispose()
editing domain
is disposed.
|
Copyright 2002, 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |