Package org.eclipse.jface.bindings.keys
Class KeyBinding
java.lang.Object
org.eclipse.jface.bindings.Binding
org.eclipse.jface.bindings.keys.KeyBinding
A keyboard shortcut. This is a binding between some keyboard input and the triggering of a command. This object is immutable.
- Since:
- 3.1
- 
Field Summary
- 
Constructor SummaryConstructorsConstructorDescriptionKeyBinding(KeySequence keySequence, ParameterizedCommand command, String schemeId, String contextId, String locale, String platform, String windowManager, int type) Constructs a new instance ofKeyBinding.
- 
Method SummaryModifier and TypeMethodDescriptionfinal KeySequenceReturns the key sequence which triggers this binding.Returns the sequence of trigger for a given binding.Methods inherited from class org.eclipse.jface.bindings.Bindingequals, getContextId, getLocale, getParameterizedCommand, getPlatform, getSchemeId, getType, hashCode, toString
- 
Constructor Details- 
KeyBindingpublic KeyBinding(KeySequence keySequence, ParameterizedCommand command, String schemeId, String contextId, String locale, String platform, String windowManager, int type) Constructs a new instance ofKeyBinding.- Parameters:
- keySequence- The key sequence which should trigger this binding. This value must not be- null. It also must be a complete, non-empty key sequence.
- command- The parameterized command to which this binding applies; this value may be- nullif the binding is meant to "unbind" a previously defined binding.
- schemeId- The scheme to which this binding belongs; this value must not be- null.
- contextId- The context to which this binding applies; this value must not be- null.
- locale- The locale to which this binding applies; this value may be- nullif it applies to all locales.
- platform- The platform to which this binding applies; this value may be- nullif it applies to all platforms.
- windowManager- The window manager to which this binding applies; this value may be- nullif it applies to all window managers. This value is currently ignored.
- type- The type of binding. This should be either- SYSTEMor- USER.
 
 
- 
- 
Method Details- 
getKeySequenceReturns the key sequence which triggers this binding. The key sequence will not benull, empty or incomplete.- Returns:
- The key sequence; never null.
 
- 
getTriggerSequenceDescription copied from class:BindingReturns the sequence of trigger for a given binding. The triggers can be anything, but above all it must be hashable. This trigger sequence is used by the binding manager to distinguish between different bindings.- Specified by:
- getTriggerSequencein class- Binding
- Returns:
- The object representing an input event that will trigger this
         binding; must not be null.
 
 
-