|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extension of the basic CommandStack
API providing additional control
over (and feed-back from) the transactions used to execute commands.
Method Summary | |
---|---|
void |
execute(org.eclipse.emf.common.command.Command command,
java.util.Map options)
Executes the specified command in a read/write transaction. |
ExceptionHandler |
getExceptionHandler()
Obtains my exception handler. |
void |
setExceptionHandler(ExceptionHandler handler)
Sets an exception handler. |
Methods inherited from interface org.eclipse.emf.common.command.CommandStack |
---|
addCommandStackListener, canRedo, canUndo, execute, flush, getMostRecentCommand, getRedoCommand, getUndoCommand, redo, removeCommandStackListener, undo |
Method Detail |
public void execute(org.eclipse.emf.common.command.Command command, java.util.Map options) throws java.lang.InterruptedException, RollbackException
CommandStack.execute(Command)
method because it provides
feed-back when a command fails to complete. The implementation of this
latter method simply suppresses (but logs) any checked exception that
occurs.
Note that this method will block the caller until a read/write transaction can be started (if other transactions are currently active).
command
- the command to executeoptions
- the options to apply to the command's transaction, or
null
to select the defaults
java.lang.InterruptedException
- if the current thread is interrupted while
waiting to start a read/write transaction for the command execution
RollbackException
- if the changes performed by the command are
rolled back by validation of the transactionpublic void setExceptionHandler(ExceptionHandler handler)
handler
- the exception handler to setpublic ExceptionHandler getExceptionHandler()
null
if noneTransactionalCommandStack.setExceptionHandler(ExceptionHandler)
|
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 |