|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.CompoundCommand
org.eclipse.emf.transaction.util.ConditionalRedoCommand.Compound
org.eclipse.emf.transaction.util.TriggerCommand
A specialized compound command that combines a "triggering" command with commands
contributed by ResourceSetListener
s as triggers. It takes care of
the distinction between the triggering command and the others when executing,
undoing, and redoing.
Nested Class Summary |
Nested classes inherited from class org.eclipse.emf.common.command.AbstractCommand |
org.eclipse.emf.common.command.AbstractCommand.NonDirtying |
Nested classes inherited from class org.eclipse.emf.transaction.util.ConditionalRedoCommand |
ConditionalRedoCommand.Compound |
Field Summary |
Fields inherited from class org.eclipse.emf.common.command.CompoundCommand |
commandList, LAST_COMMAND_ALL, MERGE_COMMAND_ALL, resultIndex |
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand |
description, isExecutable, isPrepared, label |
Constructor Summary | |
TriggerCommand(org.eclipse.emf.common.command.Command triggeringCommand,
List triggers)
Initializes me with a list of commands triggered by the execution of some command on the command stack. |
|
TriggerCommand(List triggers)
Initializes me with a list of commands triggered not by the execution of a command but by direct manipulation of the model during a read/write transaction. |
Method Summary | |
void |
execute()
Executes all of my trigger commands, then prepends the original triggering command (if any) so that it will be undone/redone with the others. |
org.eclipse.emf.common.command.Command |
getTriggeringCommand()
Retrieves the command that triggered the trigger commands. |
List |
getTriggers()
Retrieves my trigger commands (not including the triggering command, if any). |
protected boolean |
prepare()
|
Methods inherited from class org.eclipse.emf.transaction.util.ConditionalRedoCommand.Compound |
canRedo, chain |
Methods inherited from class org.eclipse.emf.common.command.CompoundCommand |
append, appendAndExecute, appendIfCanExecute, canUndo, dispose, getAffectedObjects, getCommandList, getDescription, getLabel, getMergedAffectedObjectsCollection, getMergedResultCollection, getResult, getResultIndex, isEmpty, redo, toString, undo, unwrap |
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand |
canExecute, setDescription, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.emf.common.command.Command |
canExecute, canUndo, dispose, getAffectedObjects, getDescription, getLabel, getResult, redo, undo |
Constructor Detail |
public TriggerCommand(List triggers)
triggers
- the trigger commands that I encapsulatepublic TriggerCommand(org.eclipse.emf.common.command.Command triggeringCommand, List triggers)
triggeringCommand
- the command that triggered further commandstriggers
- the trigger commands that I encapsulateMethod Detail |
public final org.eclipse.emf.common.command.Command getTriggeringCommand()
null
if the triggers
were not instigated by the execution of a commandpublic final List getTriggers()
Command
s. Will not be emptyprotected boolean prepare()
public void execute()
|
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 |