Class KeyBindingManager


  • public class KeyBindingManager
    extends java.lang.Object
    Key binding management class for viewer actions.
    Since:
    1.18
    Author:
    Mat Hansen
    • Constructor Detail

      • KeyBindingManager

        public KeyBindingManager()
    • Method Detail

      • bindAction

        public void bindAction​(Action action,
                               org.eclipse.jface.bindings.keys.KeyStroke keyStroke)
        Bind a new key binding to an Action.
        Parameters:
        action - the action to bind
        keyStroke - the key stroke to bind to
      • 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