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.CommandActionHandler
createDelegatedAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Creates theBaseSelectionListenerAction
to which thisKeybindedMasterDetailAction
forwards to.protected java.lang.String
getEMFImagePath()
The path to the image for theBaseSelectionListenerAction
.protected boolean
isExecuteOnKeyPressed(org.eclipse.swt.events.KeyEvent event)
Determines if theKeybindedMasterDetailAction.executeOnKeyPressed(ISelection)
method shall be executed.protected boolean
isExecuteOnKeyRelease(org.eclipse.swt.events.KeyEvent event)
Determines if theKeybindedMasterDetailAction.executeOnKeyRelease(ISelection)
method shall be executed.void
keyPressed(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:DelegatingMasterDetailAction
The path to the image for theBaseSelectionListenerAction
.- Specified by:
getEMFImagePath
in 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:DelegatingMasterDetailAction
Creates theBaseSelectionListenerAction
to which thisKeybindedMasterDetailAction
forwards to.- Specified by:
createDelegatedAction
in classDelegatingMasterDetailAction
- Parameters:
editingDomain
- TheEditingDomain
which is used to create theBaseSelectionListenerAction
.- Returns:
- The
BaseSelectionListenerAction
to which thisKeybindedMasterDetailAction
forwards to.
-
isExecuteOnKeyRelease
protected boolean isExecuteOnKeyRelease(org.eclipse.swt.events.KeyEvent event)
Description copied from class:KeybindedMasterDetailAction
Determines if theKeybindedMasterDetailAction.executeOnKeyRelease(ISelection)
method shall be executed.- Specified by:
isExecuteOnKeyRelease
in classKeybindedMasterDetailAction
- Parameters:
event
- TheKeyEvent
on Keypress. This allows to react on key combinations even on key release- Returns:
true
ifKeybindedMasterDetailAction.executeOnKeyRelease(ISelection)
method shall be called,false
otherwise.
-
keyPressed
public void keyPressed(org.eclipse.swt.events.KeyEvent event)
- Specified by:
keyPressed
in interfaceorg.eclipse.swt.events.KeyListener
- Overrides:
keyPressed
in 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:
isExecuteOnKeyPressed
in classKeybindedMasterDetailAction
- Parameters:
event
- TheKeyEvent
which triggers this method.- Returns:
true
ifKeybindedMasterDetailAction.executeOnKeyPressed(ISelection)
method shall be called,false
otherwise.- See Also:
KeybindedMasterDetailAction.isExecuteOnKeyPressed(org.eclipse.swt.events.KeyEvent)
-
-