public class PasteMasterDetailAction extends DelegatingMasterDetailAction
PasteAction
.Constructor and Description |
---|
PasteMasterDetailAction(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 |
isExecuteOnKeyPressed(org.eclipse.swt.events.KeyEvent event)
Determines if the
KeybindedMasterDetailAction.executeOnKeyPressed(ISelection) method shall be executed. |
protected boolean |
isExecuteOnKeyRelease(org.eclipse.swt.events.KeyEvent event)
Determines if the
KeybindedMasterDetailAction.executeOnKeyRelease(ISelection) method shall be executed. |
void |
keyPressed(org.eclipse.swt.events.KeyEvent event) |
execute, execute, executeOnKeyRelease, getDelegatedAction, getEMFEditLabel, shouldShow
executeOnKeyPressed, getCurrentSelection, isActivated, isExecuteOnKeyRelease, keyReleased, selectionChanged, setExecuteOnKeyRelease, setTreeViewer
getImagePath, getLabel, getTreeViewer, setImagePath, setLabel
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
public PasteMasterDetailAction(org.eclipse.emf.edit.domain.EditingDomain editingDomain)
editingDomain
- The EditingDomain
for the PasteAction
.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.public void keyPressed(org.eclipse.swt.events.KeyEvent event)
keyPressed
in interface org.eclipse.swt.events.KeyListener
keyPressed
in class KeybindedMasterDetailAction
KeybindedMasterDetailAction.keyPressed(org.eclipse.swt.events.KeyEvent)
protected boolean isExecuteOnKeyPressed(org.eclipse.swt.events.KeyEvent event)
KeybindedMasterDetailAction.executeOnKeyPressed(ISelection)
method shall be executed.isExecuteOnKeyPressed
in class KeybindedMasterDetailAction
event
- The KeyEvent
which triggers this method.true
if KeybindedMasterDetailAction.executeOnKeyPressed(ISelection)
method shall be called, false
otherwise.KeybindedMasterDetailAction.isExecuteOnKeyPressed(org.eclipse.swt.events.KeyEvent)
Copyright © 2018. All rights reserved.