Class 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 a CreateChildCommand.
    • Field Summary

      • Fields inherited from class org.eclipse.emf.edit.ui.action.emfforms.StaticSelectionCommandAction

        command
      • Fields inherited from interface org.eclipse.jface.action.IAction

        AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
    • 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 by descriptor for the single object in the selection.
    • 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 for StaticSelectionCommandAction.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
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 by descriptor for the single object in the selection.
        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 for StaticSelectionCommandAction.createActionCommand(org.eclipse.emf.edit.domain.EditingDomain, java.util.Collection<?>).
        Specified by:
        createActionCommand in class org.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 interface org.eclipse.jface.action.IAction
        Overrides:
        run in class org.eclipse.emf.edit.ui.action.emfforms.StaticSelectionCommandAction