Package org.eclipse.jface.bindings
Provides support for bindings between commands and various user input events
(e.g., keyboard shortcuts).
See:
Description
Interface Summary
|
IBindingManagerListener
|
An instance of BindingManagerListener can be used by clients to
receive notification of changes to an instance of
BindingManager . |
ISchemeListener
|
An instance of ISchemeListener can be used by clients to
receive notification of changes to one or more instances of
IScheme . |
Class Summary
|
Binding
|
A binding is a link between user input and the triggering of a particular
command. |
BindingManager
|
A central repository for bindings -- both in the defined and undefined
states. |
BindingManagerEvent
|
An instance of this class describes changes to an instance of
BindingManager . |
Scheme
|
An instance of IScheme is a handle representing a binding
scheme as defined by the extension point org.eclipse.ui.bindings . |
SchemeEvent
|
An instance of this class describes changes to an instance of
IScheme . |
Trigger
|
The abstract class for any object that can be used as a trigger for a binding. |
TriggerSequence
|
A sequence of one or more triggers. |
Package org.eclipse.jface.bindings Description
Provides support for bindings between commands and various user input events
(e.g., keyboard shortcuts).
Package Specification
This package provides the common classes and abstract classes required to
provide binding support.
All the real work in this package is carried out by the
BindingManager
, and most work with bindings can be carried out
directly with it. The binding manager manages a collection of bindings, and
decides which bindings are active at any point in time. By changes the various
properties of the manager, the active bindings will change. The binding
manager implements a caching scheme that is optimized for an infreqeuntly
changing set of bindings, but frequently changing properties.
The binding manager also manages schemes. A scheme is a grouping of bindings.
To create a scheme, use BindingManager.getScheme(String)
. The
scheme must then be defined before it can be used.
If you wish to implement your own type of binding, then you must subclass
Trigger
and TriggerSequence
. Then, simply use these
subclasses with the BindingManager
.
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.