org.eclipse.emf.mapping.action
Class RemoveMappingAction.CommandDelegate

java.lang.Object
  extended by org.eclipse.emf.common.command.AbstractCommand
      extended by org.eclipse.emf.common.command.CommandWrapper
          extended by org.eclipse.emf.mapping.action.RemoveMappingAction.CommandDelegate
All Implemented Interfaces:
Command, CommandActionDelegate
Enclosing class:
RemoveMappingAction

public static class RemoveMappingAction.CommandDelegate
extends CommandWrapper
implements CommandActionDelegate


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand
AbstractCommand.NonDirtying
 
Field Summary
protected  java.util.Collection<?> collection
           
protected  MappingDomain mappingDomain
           
 
Fields inherited from class org.eclipse.emf.common.command.CommandWrapper
command
 
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand
description, isExecutable, isPrepared, label
 
Constructor Summary
RemoveMappingAction.CommandDelegate(EditingDomain editingDomain, CommandParameter commandParameter)
           
 
Method Summary
 Command createCommand()
          Create the command being proxied.
 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.
 
Methods inherited from class org.eclipse.emf.common.command.CommandWrapper
canUndo, dispose, execute, getAffectedObjects, getCommand, getDescription, getLabel, getResult, prepare, redo, toString, undo
 
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand
canExecute, chain, 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.edit.command.CommandActionDelegate
canExecute, getDescription
 

Field Detail

mappingDomain

protected MappingDomain mappingDomain

collection

protected java.util.Collection<?> collection
Constructor Detail

RemoveMappingAction.CommandDelegate

public RemoveMappingAction.CommandDelegate(EditingDomain editingDomain,
                                           CommandParameter commandParameter)
Method Detail

getImage

public java.lang.Object getImage()
This returns the icon, if any, of the action.

Specified by:
getImage in interface CommandActionDelegate

getText

public java.lang.String getText()
Description copied from interface: CommandActionDelegate
This returns the menu text, if any, of the action.

Specified by:
getText in interface CommandActionDelegate

getToolTipText

public java.lang.String getToolTipText()
This returns the tool tip text, if any, of the action.

Specified by:
getToolTipText in interface CommandActionDelegate

createCommand

public Command createCommand()
Description copied from class: CommandWrapper
Create the command being proxied. This implementation just return null. It is called by CommandWrapper.prepare().

Overrides:
createCommand in class CommandWrapper
Returns:
the command being proxied.

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.