public class CopyMasterDetailAction extends DelegatingMasterDetailAction
CopyAction
.Constructor and Description |
---|
CopyMasterDetailAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.emf.edit.ui.action.CommandActionHandler |
createDelegatedAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
Creates the
BaseSelectionListenerAction to which this KeybindedMasterDetailAction forwards to. |
protected String |
getEMFImagePath()
The path to the image for the
BaseSelectionListenerAction . |
protected boolean |
isExecuteOnKeyRelease(org.eclipse.swt.events.KeyEvent event)
Determines if the
KeybindedMasterDetailAction.executeOnKeyRelease(ISelection) method shall be executed. |
execute, execute, executeOnKeyRelease, getDelegatedAction, getEMFEditLabel, shouldShow
executeOnKeyPressed, getCurrentSelection, isActivated, isExecuteOnKeyPressed, isExecuteOnKeyRelease, keyPressed, keyReleased, selectionChanged, setExecuteOnKeyRelease, setTreeViewer
getImagePath, getLabel, getTreeViewer, setImagePath, setLabel
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public CopyMasterDetailAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
editingDomain
- The EditingDomain
for the CopyAction
.protected String getEMFImagePath()
DelegatingMasterDetailAction
BaseSelectionListenerAction
.getEMFImagePath
in class DelegatingMasterDetailAction
BaseSelectionListenerAction
.protected org.eclipse.emf.edit.ui.action.CommandActionHandler createDelegatedAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
DelegatingMasterDetailAction
BaseSelectionListenerAction
to which this KeybindedMasterDetailAction
forwards to.createDelegatedAction
in class DelegatingMasterDetailAction
editingDomain
- The EditingDomain
which is used to create the BaseSelectionListenerAction
.BaseSelectionListenerAction
to which this KeybindedMasterDetailAction
forwards to.protected boolean isExecuteOnKeyRelease(org.eclipse.swt.events.KeyEvent event)
KeybindedMasterDetailAction
KeybindedMasterDetailAction.executeOnKeyRelease(ISelection)
method shall be executed.isExecuteOnKeyRelease
in class KeybindedMasterDetailAction
event
- The KeyEvent
on Keypress. This allows to react on key combinations even on key releasetrue
if KeybindedMasterDetailAction.executeOnKeyRelease(ISelection)
method shall be called, false
otherwise.Copyright © 2019. All rights reserved.