public static interface ExternalActionManager.ICallback
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(String identifier,
IPropertyChangeListener listener)
Adds a listener to the object referenced by
identifier . |
Integer |
getAccelerator(String identifier)
An accessor for the accelerator associated with the item indicated by
the identifier.
|
String |
getAcceleratorText(String identifier)
An accessor for the accelerator text associated with the item
indicated by the identifier.
|
boolean |
isAcceleratorInUse(int accelerator)
Checks to see whether the given accelerator is being used by some
other mechanism (outside of the menus controlled by JFace).
|
boolean |
isActive(String identifier)
Checks whether the item matching this identifier is active.
|
void |
removePropertyChangeListener(String identifier,
IPropertyChangeListener listener)
Removes a listener from the object referenced by
identifier . |
void addPropertyChangeListener(String identifier, IPropertyChangeListener listener)
Adds a listener to the object referenced by identifier
.
This listener will be notified if a property of the item is to be
changed. This identifier is specific to mechanism being used. In the
case of the Eclipse workbench, this is the command identifier.
Has no effect if an identical listener has already been added for
the identifier
.
identifier
- The identifier of the item to which the listener should be
attached; must not be null
.listener
- The listener to be added; must not be null
.Integer getAccelerator(String identifier)
identifier
- The identifier of the item from which the accelerator
should be obtained ; must not be null
.String getAcceleratorText(String identifier)
identifier
- The identifier of the item from which the accelerator text
should be obtained ; must not be null
.boolean isAcceleratorInUse(int accelerator)
accelerator
- The accelerator to check -- in SWT's internal accelerator
format.true
if the accelerator is already being used
and shouldn't be used again; false
otherwise.boolean isActive(String identifier)
identifier
- The identifier of the item from which the active state
should be retrieved; must not be null
.true
if the item is active; false
otherwise.void removePropertyChangeListener(String identifier, IPropertyChangeListener listener)
identifier
. This identifier is specific to mechanism
being used. In the case of the Eclipse workbench, this is the command
identifier.identifier
- The identifier of the item to from the listener should be
removed; must not be null
.listener
- The listener to be removed; must not be null
.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.