public class CreateChildAction
extends org.eclipse.emf.edit.ui.action.emfforms.StaticSelectionCommandAction
CreateChildCommand
.Constructor and 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 by
descriptor for the single object in the selection . |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.emf.common.command.Command |
createActionCommand(org.eclipse.emf.edit.domain.EditingDomain editingDomain,
Collection<?> collection)
This creates the command for
StaticSelectionCommandAction.createActionCommand(org.eclipse.emf.edit.domain.EditingDomain, java.util.Collection<?>) . |
void |
run()
This executes the command.
|
configureAction, disable, getDefaultImageDescriptor, objectToImageDescriptor
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
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
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)
descriptor
for the single object in the selection
.protected org.eclipse.emf.common.command.Command createActionCommand(org.eclipse.emf.edit.domain.EditingDomain editingDomain, Collection<?> collection)
StaticSelectionCommandAction.createActionCommand(org.eclipse.emf.edit.domain.EditingDomain, java.util.Collection<?>)
.createActionCommand
in class org.eclipse.emf.edit.ui.action.emfforms.StaticSelectionCommandAction
public void run()
org.eclipse.emf.edit.ui.action.emfforms.StaticSelectionCommandAction
run
in interface org.eclipse.jface.action.IAction
run
in class org.eclipse.emf.edit.ui.action.emfforms.StaticSelectionCommandAction
Copyright © 2019. All rights reserved.