Class ShortcutPluginExecuteKeyListener

java.lang.Object
com.vividsolutions.jump.workbench.ui.ShortcutPluginExecuteKeyListener
All Implemented Interfaces:
KeyListener, EventListener

public class ShortcutPluginExecuteKeyListener extends Object implements KeyListener
  • Constructor Details

    • ShortcutPluginExecuteKeyListener

      public ShortcutPluginExecuteKeyListener(WorkbenchContext wbc)
  • Method Details

    • add

      public void add(int keyCode, int modifiers, PlugIn plugin, EnableCheck enableCheck)
      Deprecated.
      Legacy method. Use add(KeyStroke key, final PlugIn plugin) instead.
      Parameters:
      keyCode - code of the shortcut key
      modifiers - modifier to use with the key
      plugin - PlugIn associated with the shortcut
      enableCheck - enableCheck defining whether the PlugIn is active or not
    • add

      public void add(KeyStroke key, PlugIn plugin)
    • contains

      public boolean contains(KeyStroke key)
    • containsDefinition

      public boolean containsDefinition(KeyStroke key)
    • getPlugIn

      public PlugIn getPlugIn(KeyStroke key)
    • getEnableCheck

      public EnableCheck getEnableCheck(KeyStroke key)
    • getAllKeyStrokes

      public final Set<KeyStroke> getAllKeyStrokes()
    • keyTyped

      public void keyTyped(KeyEvent e)
      Specified by:
      keyTyped in interface KeyListener
    • keyReleased

      public void keyReleased(KeyEvent e)
      Specified by:
      keyReleased in interface KeyListener
    • keyPressed

      public void keyPressed(KeyEvent e)
      Specified by:
      keyPressed in interface KeyListener
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getPlatformKeyStroke

      public static KeyStroke getPlatformKeyStroke(KeyStroke stroke)
      create a proper keystroke per platform. used to decorate menus with accelerators.
      Parameters:
      stroke - keyStroke to modify
      Returns:
      a KeyStroke which modifier has been modified according to the platform