public class CreateChildAction extends StaticSelectionCommandAction
CreateChildCommand
.Modifier and Type | Field and Description |
---|---|
protected CommandParameter |
newChildDescriptor
This is the descriptor for the child to be created.
|
command, editingDomain
Constructor and Description |
---|
CreateChildAction(IEditorPart editorPart,
ISelection selection,
CommandParameter newChildDescriptor)
This constructs an instance of an action that creates a child described by newChildDescriptor.
|
Modifier and Type | Method and Description |
---|---|
protected Command |
createActionCommand(EditingDomain editingDomain,
java.util.Collection<?> collection)
This creates the command that creates the child and adds it under the
single selected object, specified in collection.
|
protected ImageDescriptor |
getDefaultImageDescriptor()
This returns the image that is used if the command does not provide an
override.
|
configureAction, disable, objectToImageDescriptor, run
protected CommandParameter newChildDescriptor
public CreateChildAction(IEditorPart editorPart, ISelection selection, CommandParameter newChildDescriptor)
protected ImageDescriptor getDefaultImageDescriptor()
getDefaultImageDescriptor
in class StaticSelectionCommandAction
protected Command createActionCommand(EditingDomain editingDomain, java.util.Collection<?> collection)
createActionCommand
in class StaticSelectionCommandAction