public interface KeyStrokeContext
You can have presets (Ex: JDev3.2, Msvc, ...) that defines different sets of mappings. To declare presets, you should return a List of preset names in getPresetKeyStrokeMaps(). If you only have one preset (jdev5) simply return null from getPresetKeyStrokeMaps().
KeyStrokesConstraint describes the keys the user can map in the local context. For example, in a text editor the user should not be allowed to map the 'S' key since it would prevent to type the 'S' character. However, the UI editor would allow the user to map the 'S' key to the Select command.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAcceleratorFile()
If your addin provides predefined accelerator definitions, you should return the name of the .KDF file in your jar file.
|
java.util.Set |
getAllActions(boolean bGlobal)
Returns a Set of actions valid for the context.
|
java.util.List |
getAllPresets()
This method is called to get a list of the predefined mappings.
|
java.lang.String |
getName()
Get the name of this context as it will appear in the shortcut configuration panel.
|
KeyStrokeMap |
getPresetKeyStrokeMap(java.lang.Object preset, boolean bGlobal)
Returns the mapping between KeyStrokes and Actions.
|
java.lang.String getName()
java.util.Set getAllActions(boolean bGlobal)
KeyStrokeMap getPresetKeyStrokeMap(java.lang.Object preset, boolean bGlobal)
preset
- corresponds to one of the elements returned by getPresetKeyStrokeMaps or null to get the default map.bGlobal
- true when asked for the global keys.java.util.List getAllPresets()
The values in the list should be one of the PC_ constants.
java.lang.String getAcceleratorFile()