org.eclipse.emf.edit.ui.action
Class CreateChildAction

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

public class CreateChildAction
extends StaticSelectionCommandAction

A child creation action is implemented by creating a CreateChildCommand.


Field Summary
protected  java.lang.Object descriptor
          This describes 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, java.lang.Object descriptor)
          This constructs an instance of an action that creates a child specified by descriptor for the single object in the selection.
 
Method Summary
protected  Command createActionCommand(EditingDomain editingDomain, java.util.Collection collection)
          This creates the command for StaticSelectionCommandAction.createActionCommand(org.eclipse.emf.edit.domain.EditingDomain, java.util.Collection).
 
Methods inherited from class org.eclipse.emf.edit.ui.action.StaticSelectionCommandAction
configureAction, disable, getDefaultImageDescriptor, objectToImageDescriptor, run
 

Field Detail

descriptor

protected java.lang.Object descriptor
This describes the child to be created.
Constructor Detail

CreateChildAction

public CreateChildAction(org.eclipse.ui.IEditorPart editorPart,
                         org.eclipse.jface.viewers.ISelection selection,
                         java.lang.Object descriptor)
This constructs an instance of an action that creates a child specified by descriptor for the single object in the selection.
Method Detail

createActionCommand

protected Command createActionCommand(EditingDomain editingDomain,
                                      java.util.Collection collection)
This creates the command for StaticSelectionCommandAction.createActionCommand(org.eclipse.emf.edit.domain.EditingDomain, java.util.Collection).
Overrides:
createActionCommand in class StaticSelectionCommandAction

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