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
.
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. |
newChildDescriptor
protected CommandParameter newChildDescriptor
- This is the descriptor for the child to be created.
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.
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