public final class BindingManagerEvent extends AbstractBitSetEvent
BindingManager
.
This class is not intended to be extended by clients.
IBindingManagerListener.bindingManagerChanged(BindingManagerEvent)
changedValues
Constructor and Description |
---|
BindingManagerEvent(BindingManager manager,
boolean activeBindingsChanged,
Map previousTriggersByParameterizedCommand,
boolean activeSchemeChanged,
Scheme scheme,
boolean schemeDefined,
boolean localeChanged,
boolean platformChanged)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
BindingManager |
getManager()
Returns the instance of the manager that changed.
|
Scheme |
getScheme()
Returns the scheme that changed.
|
boolean |
isActiveBindingsChanged()
Returns whether the active bindings have changed.
|
boolean |
isActiveBindingsChangedFor(ParameterizedCommand parameterizedCommand)
Computes whether the active bindings have changed for a given command
identifier.
|
boolean |
isActiveSchemeChanged()
Returns whether or not the active scheme changed.
|
boolean |
isLocaleChanged()
Returns whether the locale has changed
|
boolean |
isPlatformChanged()
Returns whether the platform has changed
|
boolean |
isSchemeChanged()
Returns whether the list of defined scheme identifiers has changed.
|
boolean |
isSchemeDefined()
Returns whether or not the scheme became defined
|
public BindingManagerEvent(BindingManager manager, boolean activeBindingsChanged, Map previousTriggersByParameterizedCommand, boolean activeSchemeChanged, Scheme scheme, boolean schemeDefined, boolean localeChanged, boolean platformChanged)
manager
- the instance of the binding manager that changed; must not be
null
.activeBindingsChanged
- Whether the active bindings have changed.previousTriggersByParameterizedCommand
- The map of triggers (TriggerSequence
) by
fully-parameterized command (ParameterizedCommand
)
before the change occured. This map may be null
or empty.activeSchemeChanged
- true, iff the active scheme changed.scheme
- The scheme that became defined or undefined; null
if no scheme changed state.schemeDefined
- true
if the given scheme became defined;
false
otherwise.localeChanged
- true
iff the active locale changedplatformChanged
- true
iff the active platform changedpublic final BindingManager getManager()
null
.public final Scheme getScheme()
public final boolean isActiveBindingsChanged()
true
if the active bindings have changed;
false
otherwise.public final boolean isActiveBindingsChangedFor(ParameterizedCommand parameterizedCommand)
parameterizedCommand
- The fully-parameterized command whose bindings might have
changed; must not be null
.true
if the active bindings have changed for the
given command identifier; false
otherwise.public final boolean isActiveSchemeChanged()
public boolean isLocaleChanged()
true
if the locale changed; false
otherwise.public boolean isPlatformChanged()
true
if the platform changed; false
otherwise.public final boolean isSchemeChanged()
true
if the list of scheme identifiers has
changed; false
otherwise.public final boolean isSchemeDefined()
true
if the scheme became defined.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.