org.eclipse.emf.facet.widgets.celleditors
Interface ICommandFactory


public interface ICommandFactory

Creates Commands for a specific EditingDomain.

See also ICommandFactoriesRegistry


Method Summary
 Command createAddCommand(EditingDomain domain, java.lang.Object owner, java.lang.Object feature, java.lang.Object value)
          This creates an AddCommand to add a particular value to the specified feature of the owner.
 Command createDeleteCommand(EditingDomain domain, java.lang.Object object)
          This creates a command that deletes the given object.
 Command createMoveCommand(EditingDomain domain, java.lang.Object owner, java.lang.Object feature, java.lang.Object value, int index)
          This creates a MoveCommand to move a particular value to a particular index in the specified feature of the owner.
 Command createRemoveCommand(EditingDomain domain, java.lang.Object owner, java.lang.Object feature, java.lang.Object value)
          This creates a RemoveCommand to remove a particular value from the specified feature of the owner.
 Command createSetCommand(EditingDomain domain, java.lang.Object owner, java.lang.Object feature, java.lang.Object value)
          This creates a SetCommand to set the owner's feature to the specified value.
 Command createSetCommand(EditingDomain domain, java.lang.Object owner, java.lang.Object feature, java.lang.Object value, int index)
          This creates a SetCommand to set the owner's feature to the specified value at the specified index.
 boolean handles(EditingDomain editingDomain)
          Whether this command factory should be used for the given EditingDomain
 

Method Detail

handles

boolean handles(EditingDomain editingDomain)
Whether this command factory should be used for the given EditingDomain


createSetCommand

Command createSetCommand(EditingDomain domain,
                         java.lang.Object owner,
                         java.lang.Object feature,
                         java.lang.Object value)
This creates a SetCommand to set the owner's feature to the specified value.


createSetCommand

Command createSetCommand(EditingDomain domain,
                         java.lang.Object owner,
                         java.lang.Object feature,
                         java.lang.Object value,
                         int index)
This creates a SetCommand to set the owner's feature to the specified value at the specified index.


createMoveCommand

Command createMoveCommand(EditingDomain domain,
                          java.lang.Object owner,
                          java.lang.Object feature,
                          java.lang.Object value,
                          int index)
This creates a MoveCommand to move a particular value to a particular index in the specified feature of the owner. The feature will often be null because the domain will deduce it.


createAddCommand

Command createAddCommand(EditingDomain domain,
                         java.lang.Object owner,
                         java.lang.Object feature,
                         java.lang.Object value)
This creates an AddCommand to add a particular value to the specified feature of the owner. The feature will often be null because the domain will deduce it.


createRemoveCommand

Command createRemoveCommand(EditingDomain domain,
                            java.lang.Object owner,
                            java.lang.Object feature,
                            java.lang.Object value)
This creates a RemoveCommand to remove a particular value from the specified feature of the owner.


createDeleteCommand

Command createDeleteCommand(EditingDomain domain,
                            java.lang.Object object)
This creates a command that deletes the given object.