org.eclipse.emf.codegen.ecore.genmodel.action
Class CreateChildAction

org.eclipse.emf.edit.ui.action.StaticSelectionCommandAction
  |
  +--org.eclipse.emf.codegen.ecore.genmodel.action.CreateChildAction

public class CreateChildAction
extends StaticSelectionCommandAction

This performs child creation by delegating to a CreateChildCommand.


Field Summary
protected  CommandParameter newChildDescriptor
          This is the descriptor for the child to be created.
 
Fields inherited from class org.eclipse.emf.edit.ui.action.StaticSelectionCommandAction
command, editingDomain
 
Constructor Summary
CreateChildAction(org.eclipse.ui.IEditorPart editorPart, org.eclipse.jface.viewers.ISelection selection, CommandParameter newChildDescriptor)
          This constructs an instance of an action that creates a child descripted by newChildDescriptor.
 
Method Summary
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  org.eclipse.jface.resource.ImageDescriptor getDefaultImageDescriptor()
          This returns the image that is used if the command does not provide an override.
 
Methods inherited from class org.eclipse.emf.edit.ui.action.StaticSelectionCommandAction
configureAction, disable, objectToImageDescriptor, run
 

Field Detail

newChildDescriptor

protected CommandParameter newChildDescriptor
This is the descriptor for the child to be created.
Constructor Detail

CreateChildAction

public CreateChildAction(org.eclipse.ui.IEditorPart editorPart,
                         org.eclipse.jface.viewers.ISelection selection,
                         CommandParameter newChildDescriptor)
This constructs an instance of an action that creates a child descripted by newChildDescriptor.
Method Detail

getDefaultImageDescriptor

protected org.eclipse.jface.resource.ImageDescriptor getDefaultImageDescriptor()
This returns the image that is used if the command does not provide an override.
Overrides:
getDefaultImageDescriptor in class StaticSelectionCommandAction

createActionCommand

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.
Overrides:
createActionCommand in class StaticSelectionCommandAction

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