Extension SDK 10.1.3.36.73

Package oracle.ide.keyboard

Defining your default accelerators Create an accelerator definition (accelerators.xml).

See:
          Description

Interface Summary
KeyStrokeContext A KeyStrokeContext describes the keystrokes/command mappings available for a component.
KeyStrokesConstraint Defines what key can be used as a shortcut.
 

Class Summary
DefaultKeyStrokeContext This class implements the most common behavior of a KeyStrokeContext.
DialogWatcher This class ensures that user defined accelerators for cut, copy and paste also work in the text components of dialogs.
GrabbableFocusManager This FocusManager allows to 'steal' keys on demand.
IdeInputMapUIResource  
KeyPresetConfigPanel A IDE Settings that controls the shortcut presets
KeyStroke2String This is a custom String converter class that meets the static interface requirements as defined by ToStringManager.registerCustomConverter(java.lang.Class).
KeyStrokeContextRegistry The KeyStrokeContextRegistry is a collection of KeyStrokeContext.
KeyStrokeField A kind of text field that captures key strokes (equivalent to the windows's hot key control).
KeyStrokeFilter This class controls the keyup/keydown events to determine what can be used as an accelerator.
KeyStrokeMap The KeyStrokeMap maps Keystrokes to action binding objects.
KeyStrokeOptions This class stores the KeyStrokeMap for one global context and multiple local contexts.
KeyStrokePanel This panel edits shortcuts in one context.
KeyStrokes Stores a multi-KeyStroke.
KeyStrokesConfigUI This is the Navigable for configurable shortcuts.
KeyStrokesConstraintFactory KeyStrokesConstraintFactory is a factory of KeyStrokeConstraint.
KeyUtil Some generic methods related to KeyEvents and KeyStrokes.
MultiInputMap An InputMap that can handle multiple keys like Ctrl+K, S
MultiMapAdapter This class contains some utilities for the keyboard mapping.
PresetsPanel  
XMLKeyStrokeContext This class should only be used if your addin is part of the product.
XMLKeystrokeContextDefs  
 

Package oracle.ide.keyboard Description

Defining your default accelerators

Create an accelerator definition (accelerators.xml). In this case, "HELLO" is our action ID.
<context scope="global">
  <preset name="Default">
    <map action="HELLO">
      <accel>control alt shift H</accel>
    </map>
  </preset>
  <preset name="Emacs">
    <map action="HELLO">>
      <accel>control alt shift H</accel>
      <accel>X</accel>
    </map>
  </preset>
</context>

Register this accelerator file:

  final KeyStrokeContextRegistry keyStrokeContextRegistry = Ide.getKeyStrokeContextRegistry();
  keyStrokeContextRegistry.addAcceleratorDefinitionFile(
          getClass().getClassLoader(),
          "acceleratorsample/accelerators.xml"
  );


Extension SDK 10.1.3.36.73

 

Copyright © 1997, 2005, Oracle.All rights reserved.