Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Package oracle.ide.keyboard

Defining your default accelerators

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
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.
KeyStrokeMap does not extend a real Map but implements most of the Map methods.
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 Deprecated. since 11.0 with no replacement.
KeyStrokesConstraintFactory KeyStrokesConstraintFactory is a factory of KeyStrokeConstraint.
Since I only expect two KeyStrokeConstraint, this factory builds them.
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"
  );


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

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