Class KeyBindingManager
- java.lang.Object
-
- org.eclipse.emfforms.internal.swt.table.action.KeyBindingManager
-
public class KeyBindingManager extends java.lang.Object
Key binding management class for viewer actions.- Since:
- 1.18
- Author:
- Mat Hansen
-
-
Constructor Summary
Constructors Constructor Description KeyBindingManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyActionConfiguration(ActionConfiguration configuration)
Apply action bindings stored within anActionConfiguration
.void
bindAction(Action action, org.eclipse.jface.bindings.keys.KeyStroke keyStroke)
Bind a new key binding to anAction
.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.
-
-
-
Method Detail
-
bindAction
public void bindAction(Action action, org.eclipse.jface.bindings.keys.KeyStroke keyStroke)
Bind a new key binding to anAction
.- Parameters:
action
- the action to bindkeyStroke
- the key stroke to bind to
-
applyActionConfiguration
public void applyActionConfiguration(ActionConfiguration configuration)
Apply action bindings stored within anActionConfiguration
.- Parameters:
configuration
- theActionConfiguration
to apply
-
bindToViewer
public void bindToViewer(org.eclipse.jface.viewers.Viewer viewer)
Bind all known actions to a viewer.- Parameters:
viewer
- the viewer to bind to
-
unbindFromViewer
public void unbindFromViewer(org.eclipse.jface.viewers.Viewer viewer)
Unbind from viewer.- Parameters:
viewer
- the viewer to unbind from
-
-