Class CreateChildAction
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.jface.action.AbstractAction
-
- org.eclipse.jface.action.Action
-
- org.eclipse.emf.edit.ui.action.emfforms.StaticSelectionCommandAction
-
- org.eclipse.emfforms.spi.swt.treemasterdetail.util.CreateChildAction
-
- All Implemented Interfaces:
org.eclipse.jface.action.IAction
- Direct Known Subclasses:
CreateChildActionWithAccelerator
public class CreateChildAction extends org.eclipse.emf.edit.ui.action.emfforms.StaticSelectionCommandAction
A child creation action is implemented by creating aCreateChildCommand
.
-
-
Constructor Summary
Constructors Constructor Description CreateChildAction(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.edit.domain.EditingDomain editingDomain, org.eclipse.jface.viewers.ISelectionProvider selectionProvider, org.eclipse.emf.edit.command.CommandParameter descriptor, CreateElementCallback createElementCallback)
This constructs an instance of an action that uses the given editing domain to create a child specified bydescriptor
for the single object in theselection
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.emf.common.command.Command
createActionCommand(org.eclipse.emf.edit.domain.EditingDomain editingDomain, java.util.Collection<?> collection)
This creates the command forStaticSelectionCommandAction.createActionCommand(org.eclipse.emf.edit.domain.EditingDomain, java.util.Collection<?>)
.void
run()
This executes the command.-
Methods inherited from class org.eclipse.emf.edit.ui.action.emfforms.StaticSelectionCommandAction
configureAction, disable, getDefaultImageDescriptor, objectToImageDescriptor
-
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
-
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
-
-
-
-
Constructor Detail
-
CreateChildAction
public CreateChildAction(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.edit.domain.EditingDomain editingDomain, org.eclipse.jface.viewers.ISelectionProvider selectionProvider, org.eclipse.emf.edit.command.CommandParameter descriptor, CreateElementCallback createElementCallback)
This constructs an instance of an action that uses the given editing domain to create a child specified bydescriptor
for the single object in theselection
.- Since:
- 2.4.0
-
-
Method Detail
-
createActionCommand
protected org.eclipse.emf.common.command.Command createActionCommand(org.eclipse.emf.edit.domain.EditingDomain editingDomain, java.util.Collection<?> collection)
This creates the command forStaticSelectionCommandAction.createActionCommand(org.eclipse.emf.edit.domain.EditingDomain, java.util.Collection<?>)
.- Specified by:
createActionCommand
in classorg.eclipse.emf.edit.ui.action.emfforms.StaticSelectionCommandAction
-
run
public void run()
Description copied from class:org.eclipse.emf.edit.ui.action.emfforms.StaticSelectionCommandAction
This executes the command.- Specified by:
run
in interfaceorg.eclipse.jface.action.IAction
- Overrides:
run
in classorg.eclipse.emf.edit.ui.action.emfforms.StaticSelectionCommandAction
-
-