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 void
add(int keyCode, int modifiers, PlugIn plugin, EnableCheck enableCheck)
Deprecated.void
add(KeyStroke key, PlugIn plugin)
boolean
contains(KeyStroke key)
boolean
containsDefinition(KeyStroke key)
Set<KeyStroke>
getAllKeyStrokes()
EnableCheck
getEnableCheck(KeyStroke key)
static KeyStroke
getPlatformKeyStroke(KeyStroke stroke)
create a proper keystroke per platform.PlugIn
getPlugIn(KeyStroke key)
void
keyPressed(KeyEvent e)
void
keyReleased(KeyEvent e)
void
keyTyped(KeyEvent e)
String
toString()
-
-
-
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:
keyTyped
in interfaceKeyListener
-
keyReleased
public void keyReleased(KeyEvent e)
- Specified by:
keyReleased
in interfaceKeyListener
-
keyPressed
public void keyPressed(KeyEvent e)
- Specified by:
keyPressed
in interfaceKeyListener
-
-