public static class TypeMatchMappingAction.DelegateCommand extends CompoundCommand implements CommandActionDelegate
AbstractCommand.NonDirtying
Modifier and Type | Field and Description |
---|---|
protected java.util.Collection<?> |
collection |
protected Command |
createMappingCommand |
protected MappingDomain |
mappingDomain |
commandList, LAST_COMMAND_ALL, MERGE_COMMAND_ALL, resultIndex
description, isExecutable, isPrepared, label
Constructor and Description |
---|
TypeMatchMappingAction.DelegateCommand(EditingDomain editingDomain,
CommandParameter commandParameter) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Calls
Command.dispose() for each command in the list. |
void |
execute()
Calls
Command.execute() for each command in the list. |
java.lang.Object |
getImage()
This returns the icon, if any, of the action.
|
java.lang.String |
getText()
This returns the menu text, if any, of the action.
|
java.lang.String |
getToolTipText()
This returns the tool tip text, if any, of the action.
|
protected boolean |
prepare()
Returns whether all the commands can execute so that
AbstractCommand.isExecutable can be cached. |
append, appendAndExecute, appendIfCanExecute, canUndo, getAffectedObjects, getCommandList, getDescription, getLabel, getMergedAffectedObjectsCollection, getMergedResultCollection, getResult, getResultIndex, isEmpty, redo, toString, undo, unwrap
canExecute, chain, setDescription, setLabel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canExecute, getDescription
protected MappingDomain mappingDomain
protected java.util.Collection<?> collection
protected Command createMappingCommand
public TypeMatchMappingAction.DelegateCommand(EditingDomain editingDomain, CommandParameter commandParameter)
protected boolean prepare()
CompoundCommand
AbstractCommand.isExecutable
can be cached.
An empty command list causes false
to be returned.prepare
in class CompoundCommand
public void execute()
CompoundCommand
Command.execute()
for each command in the list.execute
in interface Command
execute
in class CompoundCommand
public java.lang.Object getImage()
getImage
in interface CommandActionDelegate
public java.lang.String getText()
CommandActionDelegate
getText
in interface CommandActionDelegate
public java.lang.String getToolTipText()
getToolTipText
in interface CommandActionDelegate
public void dispose()
CompoundCommand
Command.dispose()
for each command in the list.dispose
in interface Command
dispose
in class CompoundCommand