org.eclipse.emf.edit.command
Interface CreateChildCommand.Helper

All Known Implementing Classes:
ItemProviderAdapter
Enclosing interface:
CreateChildCommand

public static interface CreateChildCommand.Helper

This is the helper interface to which CreateChildCommand functionality is delegated.


Method Summary
 String getCreateChildDescription(Object owner, Object feature, Object child, Collection selection)
          This returns the description of the action of creating the specified child under the specified feature of the owner.
 Object getCreateChildImage(Object owner, Object feature, Object child, Collection selection)
          This returns the icon for the action of creating the specified child under the specified feature of the owner.
 Collection getCreateChildResult(Object child)
          For a given child object, this returns the complete collection of objects to be presented as the command's result.
 String getCreateChildText(Object owner, Object feature, Object child, Collection selection)
          This returns the text for the action of creating the specified child under the specified feature of the owner.
 String getCreateChildToolTipText(Object owner, Object feature, Object child, Collection selection)
          This returns the tool tip text for the action of creating the specified child under the specified feature of the owner.
 

Method Detail

getCreateChildResult

public Collection getCreateChildResult(Object child)
For a given child object, this returns the complete collection of objects to be presented as the command's result.


getCreateChildText

public String getCreateChildText(Object owner,
                                 Object feature,
                                 Object child,
                                 Collection selection)
This returns the text for the action of creating the specified child under the specified feature of the owner. The selection is given as context, from which the Helper can determine whether the object is being added as a child or a sibling, if it wishes.


getCreateChildDescription

public String getCreateChildDescription(Object owner,
                                        Object feature,
                                        Object child,
                                        Collection selection)
This returns the description of the action of creating the specified child under the specified feature of the owner. The selection is given as context, from which the Helper can determine whether the object is being added as a child or a sibling, if it wishes.


getCreateChildToolTipText

public String getCreateChildToolTipText(Object owner,
                                        Object feature,
                                        Object child,
                                        Collection selection)
This returns the tool tip text for the action of creating the specified child under the specified feature of the owner. The selection is given as context, from which the Helper can determine whether the object is being added as a child or a sibling, if it wishes.


getCreateChildImage

public Object getCreateChildImage(Object owner,
                                  Object feature,
                                  Object child,
                                  Collection selection)
This returns the icon for the action of creating the specified child under the specified feature of the owner. The selection is given as context, from which the Helper can determine whether the object is being added as a child or a sibling, if it wishes.


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