public class KeyBindingManager extends Object
Constructor and Description |
---|
KeyBindingManager() |
Modifier and Type | Method and Description |
---|---|
void |
applyActionConfiguration(ActionConfiguration configuration)
Apply action bindings stored within an
ActionConfiguration . |
void |
bindAction(Action action,
org.eclipse.jface.bindings.keys.KeyStroke keyStroke)
Bind a new key binding to an
Action . |
void |
bindToViewer(org.eclipse.jface.viewers.Viewer viewer)
Bind all known actions to a viewer.
|
void |
unbindFromViewer(org.eclipse.jface.viewers.Viewer viewer)
Unbind from viewer.
|
public void bindAction(Action action, org.eclipse.jface.bindings.keys.KeyStroke keyStroke)
Action
.action
- the action to bindkeyStroke
- the key stroke to bind topublic void applyActionConfiguration(ActionConfiguration configuration)
ActionConfiguration
.configuration
- the ActionConfiguration
to applypublic void bindToViewer(org.eclipse.jface.viewers.Viewer viewer)
viewer
- the viewer to bind topublic void unbindFromViewer(org.eclipse.jface.viewers.Viewer viewer)
viewer
- the viewer to unbind fromCopyright © 2019. All rights reserved.