Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.bindings.keys
Class KeyBinding


java.lang.Object
  extended by 

org.eclipse.jface.bindings.Binding
      extended by 
org.eclipse.jface.bindings.keys.KeyBinding

public final class KeyBinding
extends Binding

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
 
Fields inherited from class org.eclipse.jface.bindings. Binding
string, SYSTEM, USER
 
Constructor Summary
KeyBinding ( KeySequence keySequence, ParameterizedCommand command, String schemeId, String contextId, String locale, String platform, String windowManager, int type)
          Constructs a new instance of KeyBinding.
 
Method Summary
  KeySequence getKeySequence ()
          Returns the key sequence which triggers this binding.
  TriggerSequence getTriggerSequence ()
          Returns the sequence of trigger for a given binding.
 
Methods inherited from class org.eclipse.jface.bindings. Binding
equals, getContextId, getLocale, getParameterizedCommand, getPlatform, getSchemeId, getType, hashCode, toString
 
Methods inherited from class java.lang. Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyBinding

public KeyBinding(
KeySequence keySequence,
                  
ParameterizedCommand command,
                  
String schemeId,
                  
String contextId,
                  
String locale,
                  
String platform,
                  
String windowManager,
                  int type)
Constructs a new instance of KeyBinding.

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 null if 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 null if it applies to all locales.
platform - The platform to which this binding applies; this value may be null if it applies to all platforms.
windowManager - The window manager to which this binding applies; this value may be null if it applies to all window managers. This value is currently ignored.
type - The type of binding. This should be either SYSTEM or USER.
Method Detail

getKeySequence

public final 
KeySequence getKeySequence()
Returns the key sequence which triggers this binding. The key sequence will not be null, empty or incomplete.

Returns:
The key sequence; never null.

getTriggerSequence

public 
TriggerSequence getTriggerSequence()
Description copied from class: Binding
Returns 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:
getTriggerSequence in class Binding
Returns:
The object representing an input event that will trigger this binding; must not be null.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire