Class ShortcutPluginExecuteKeyListener
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.ShortcutPluginExecuteKeyListener
-
- All Implemented Interfaces:
KeyListener,EventListener
public class ShortcutPluginExecuteKeyListener extends Object implements KeyListener
-
-
Constructor Summary
Constructors Constructor Description ShortcutPluginExecuteKeyListener(WorkbenchContext wbc)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(int keyCode, int modifiers, PlugIn plugin, EnableCheck enableCheck)Deprecated.voidadd(KeyStroke key, PlugIn plugin)booleancontains(KeyStroke key)booleancontainsDefinition(KeyStroke key)Set<KeyStroke>getAllKeyStrokes()EnableCheckgetEnableCheck(KeyStroke key)static KeyStrokegetPlatformKeyStroke(KeyStroke stroke)create a proper keystroke per platform.PlugIngetPlugIn(KeyStroke key)voidkeyPressed(KeyEvent e)voidkeyReleased(KeyEvent e)voidkeyTyped(KeyEvent e)StringtoString()
-
-
-
Constructor Detail
-
ShortcutPluginExecuteKeyListener
public ShortcutPluginExecuteKeyListener(WorkbenchContext wbc)
-
-
Method Detail
-
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 keymodifiers- modifier to use with the keyplugin- PlugIn associated with the shortcutenableCheck- enableCheck defining whether the PlugIn is active or not
-
contains
public boolean contains(KeyStroke key)
-
containsDefinition
public boolean containsDefinition(KeyStroke key)
-
getEnableCheck
public EnableCheck getEnableCheck(KeyStroke key)
-
keyTyped
public void keyTyped(KeyEvent e)
- Specified by:
keyTypedin interfaceKeyListener
-
keyReleased
public void keyReleased(KeyEvent e)
- Specified by:
keyReleasedin interfaceKeyListener
-
keyPressed
public void keyPressed(KeyEvent e)
- Specified by:
keyPressedin interfaceKeyListener
-
-