org.eclipse.emf.edit.provider
Class ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate
java.lang.Object
org.eclipse.emf.common.command.AbstractCommand
org.eclipse.emf.common.command.CommandWrapper
org.eclipse.emf.edit.provider.ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommand
org.eclipse.emf.edit.provider.ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate
- All Implemented Interfaces:
- Command, CommandActionDelegate
- Enclosing class:
- ItemProviderAdapter
- public class ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate
- extends ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommand
- implements CommandActionDelegate
A ResultAndAffectedObjectsWrappingCommandActionDelegate
wraps another command that also implements
CommandActionDelegate
, to substitute IWrapperItemProvider
s for its values, which have been
unwrapped for the command to operate on properly. This substitution is performed exactly as by a
ResultAndAffectedObjectsWrappingComand
, and action delegate methods are delegated directly to the
wrapped command.
ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate
public ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate(CommandActionDelegate command)
- Returns a new
ResultAndAffectedObjectsWrappingCommandActionDelegate
for the given command.
- Throws:
ClassCastException
- If the specified command does not implement Command
.
ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate
public ItemProviderAdapter.ResultAndAffectedObjectsWrappingCommandActionDelegate(CommandActionDelegate command,
Collection additionalWrappers)
- Returns a new
ResultAndAffectedObjectsWrappingCommandActionDelegate
for the given command and list
of additional wrappers.
- Throws:
ClassCastException
- If the specified command does not implement Command
.
getImage
public Object getImage()
- Description copied from interface:
CommandActionDelegate
- This returns the decoration, if any, of the action.
- Specified by:
getImage
in interface CommandActionDelegate
getText
public String getText()
- Description copied from interface:
CommandActionDelegate
- This returns the menu text, if any, of the action.
- Specified by:
getText
in interface CommandActionDelegate
getDescription
public String getDescription()
- Description copied from interface:
CommandActionDelegate
- This returns the description, if any, of the action.
- Specified by:
getDescription
in interface CommandActionDelegate
- Overrides:
getDescription
in class CommandWrapper
- Returns:
- the description.
getToolTipText
public String getToolTipText()
- Description copied from interface:
CommandActionDelegate
- This returns the tool tip text, if any, of the action.
- Specified by:
getToolTipText
in interface CommandActionDelegate