public class CreateChildAction extends StaticSelectionCommandAction
CreateChildCommand
.Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
descriptor
This describes the child to be created.
|
command, editingDomain
Constructor and Description |
---|
CreateChildAction(EditingDomain editingDomain,
ISelection selection,
java.lang.Object descriptor)
This constructs an instance of an action that uses the given editing domain to create a child
specified by
descriptor for the single object in the
selection . |
CreateChildAction(IEditorPart editorPart,
ISelection selection,
java.lang.Object descriptor)
This constructor is simply retained for binary compatibility.
|
CreateChildAction(IWorkbenchPart workbenchPart,
ISelection selection,
java.lang.Object descriptor)
This constructs an instance of an action that uses the workbench part's editing domain to create a child
specified by
descriptor for the single object in the
selection . |
Modifier and Type | Method and Description |
---|---|
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<?>) . |
configureAction, disable, getDefaultImageDescriptor, objectToImageDescriptor, run
protected java.lang.Object descriptor
public CreateChildAction(IWorkbenchPart workbenchPart, ISelection selection, java.lang.Object descriptor)
descriptor
for the single object in the
selection
.public CreateChildAction(IEditorPart editorPart, ISelection selection, java.lang.Object descriptor)
new form
.public CreateChildAction(EditingDomain editingDomain, ISelection selection, java.lang.Object descriptor)
descriptor
for the single object in the
selection
.protected Command createActionCommand(EditingDomain editingDomain, java.util.Collection<?> collection)
StaticSelectionCommandAction.createActionCommand(org.eclipse.emf.edit.domain.EditingDomain, java.util.Collection<?>)
.createActionCommand
in class StaticSelectionCommandAction