Class PasteInParentAction

  • All Implemented Interfaces:
    org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelectionChangedListener

    public class PasteInParentAction
    extends org.eclipse.emf.edit.ui.action.CommandActionHandler
    A paste action that will switch to the parent element of the current selection. It will create a PasteFromClipboardCommand either for the selected element or its parent.
    Since:
    1.13.0
    • Field Summary

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

        command, domain
      • 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
      PasteInParentAction()
      Constructor without providing an EditingDomain.
      PasteInParentAction​(org.eclipse.emf.edit.domain.EditingDomain domain)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.emf.common.command.Command createCommand​(java.util.Collection<?> selection)  
      • Methods inherited from class org.eclipse.emf.edit.ui.action.CommandActionHandler

        getEditingDomain, run, setEditingDomain, updateSelection
      • Methods inherited from class org.eclipse.ui.actions.BaseSelectionListenerAction

        clearCache, getStructuredSelection, runWithEvent, selectionChanged, selectionChanged
      • 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, 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

      • PasteInParentAction

        public PasteInParentAction​(org.eclipse.emf.edit.domain.EditingDomain domain)
        Default constructor.
        Parameters:
        domain - the EditingDomain
      • PasteInParentAction

        public PasteInParentAction()
        Constructor without providing an EditingDomain.
    • Method Detail

      • createCommand

        public org.eclipse.emf.common.command.Command createCommand​(java.util.Collection<?> selection)
        Overrides:
        createCommand in class org.eclipse.emf.edit.ui.action.CommandActionHandler