Class CopyMasterDetailAction
- 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.CopyMasterDetailAction
-
- 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
public class CopyMasterDetailAction extends DelegatingMasterDetailAction
Delegates toCopyAction.- Since:
- 1.8
- Author:
- Stefan Dirix
-
-
Constructor Summary
Constructors Constructor Description CopyMasterDetailAction(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 booleanisExecuteOnKeyRelease(org.eclipse.swt.events.KeyEvent event)Determines if theKeybindedMasterDetailAction.executeOnKeyRelease(ISelection)method shall be executed.-
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, isExecuteOnKeyPressed, isExecuteOnKeyRelease, keyPressed, 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.
-
-