Class PasteMasterDetailAction
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- org.eclipse.emfforms.spi.swt.treemasterdetail.actions.MasterDetailAction
-
- org.eclipse.emfforms.spi.swt.treemasterdetail.actions.KeybindedMasterDetailAction
-
- org.eclipse.emfforms.spi.swt.treemasterdetail.actions.delegating.DelegatingMasterDetailAction
-
- org.eclipse.emfforms.spi.swt.treemasterdetail.actions.delegating.PasteMasterDetailAction
-
- All Implemented Interfaces:
java.util.EventListener,org.eclipse.core.commands.IHandler,org.eclipse.core.commands.IHandler2,org.eclipse.jface.viewers.ISelectionChangedListener,org.eclipse.swt.events.KeyListener,org.eclipse.swt.internal.SWTEventListener
- Direct Known Subclasses:
PasteInParentMasterDetailAction
public class PasteMasterDetailAction extends DelegatingMasterDetailAction
Delegates toPasteAction.- Since:
- 1.8
- Author:
- Stefan Dirix
-
-
Constructor Summary
Constructors Constructor Description PasteMasterDetailAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.emf.edit.ui.action.CommandActionHandlercreateDelegatedAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)Creates theBaseSelectionListenerActionto which thisKeybindedMasterDetailActionforwards to.protected java.lang.StringgetEMFImagePath()The path to the image for theBaseSelectionListenerAction.protected booleanisExecuteOnKeyPressed(org.eclipse.swt.events.KeyEvent event)Determines if theKeybindedMasterDetailAction.executeOnKeyPressed(ISelection)method shall be executed.protected booleanisExecuteOnKeyRelease(org.eclipse.swt.events.KeyEvent event)Determines if theKeybindedMasterDetailAction.executeOnKeyRelease(ISelection)method shall be executed.voidkeyPressed(org.eclipse.swt.events.KeyEvent event)-
Methods inherited from class org.eclipse.emfforms.spi.swt.treemasterdetail.actions.delegating.DelegatingMasterDetailAction
execute, execute, executeOnKeyRelease, getDelegatedAction, getEMFEditLabel, shouldShow
-
Methods inherited from class org.eclipse.emfforms.spi.swt.treemasterdetail.actions.KeybindedMasterDetailAction
executeOnKeyPressed, getCurrentSelection, isActivated, isExecuteOnKeyRelease, keyReleased, selectionChanged, setExecuteOnKeyRelease, setTreeViewer
-
Methods inherited from class org.eclipse.emfforms.spi.swt.treemasterdetail.actions.MasterDetailAction
getImagePath, getLabel, getTreeViewer, setImagePath, setLabel
-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
-
-
-
Method Detail
-
getEMFImagePath
protected java.lang.String getEMFImagePath()
Description copied from class:DelegatingMasterDetailActionThe path to the image for theBaseSelectionListenerAction.- Specified by:
getEMFImagePathin classDelegatingMasterDetailAction- Returns:
- The path to the local image for the
BaseSelectionListenerAction.
-
createDelegatedAction
protected org.eclipse.emf.edit.ui.action.CommandActionHandler createDelegatedAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Description copied from class:DelegatingMasterDetailActionCreates theBaseSelectionListenerActionto which thisKeybindedMasterDetailActionforwards to.- Specified by:
createDelegatedActionin classDelegatingMasterDetailAction- Parameters:
editingDomain- TheEditingDomainwhich is used to create theBaseSelectionListenerAction.- Returns:
- The
BaseSelectionListenerActionto which thisKeybindedMasterDetailActionforwards to.
-
isExecuteOnKeyRelease
protected boolean isExecuteOnKeyRelease(org.eclipse.swt.events.KeyEvent event)
Description copied from class:KeybindedMasterDetailActionDetermines if theKeybindedMasterDetailAction.executeOnKeyRelease(ISelection)method shall be executed.- Specified by:
isExecuteOnKeyReleasein classKeybindedMasterDetailAction- Parameters:
event- TheKeyEventon Keypress. This allows to react on key combinations even on key release- Returns:
trueifKeybindedMasterDetailAction.executeOnKeyRelease(ISelection)method shall be called,falseotherwise.
-
keyPressed
public void keyPressed(org.eclipse.swt.events.KeyEvent event)
- Specified by:
keyPressedin interfaceorg.eclipse.swt.events.KeyListener- Overrides:
keyPressedin classKeybindedMasterDetailAction- See Also:
KeybindedMasterDetailAction.keyPressed(org.eclipse.swt.events.KeyEvent)
-
isExecuteOnKeyPressed
protected boolean isExecuteOnKeyPressed(org.eclipse.swt.events.KeyEvent event)
Determines if theKeybindedMasterDetailAction.executeOnKeyPressed(ISelection)method shall be executed.- Overrides:
isExecuteOnKeyPressedin classKeybindedMasterDetailAction- Parameters:
event- TheKeyEventwhich triggers this method.- Returns:
trueifKeybindedMasterDetailAction.executeOnKeyPressed(ISelection)method shall be called,falseotherwise.- See Also:
KeybindedMasterDetailAction.isExecuteOnKeyPressed(org.eclipse.swt.events.KeyEvent)
-
-