@Deprecated public interface ICommandManager
An instance of ICommandManager
can be used to obtain instances
of ICommand
, as well as manage whether or not those instances
are active or inactive, enabled or disabled.
This interface is not intended to be extended or implemented by clients.
ICommand
,
ICommandManagerListener
,
CommandManager
Modifier and Type | Method and Description |
---|---|
void |
addCommandManagerListener(ICommandManagerListener commandManagerListener)
Deprecated.
|
Set |
getActiveContextIds()
Deprecated.
|
String |
getActiveKeyConfigurationId()
Deprecated.
|
String |
getActiveLocale()
Deprecated.
|
String |
getActivePlatform()
Deprecated.
|
ICategory |
getCategory(String categoryId)
Deprecated.
|
ICommand |
getCommand(String commandId)
Deprecated.
|
Set |
getDefinedCategoryIds()
Deprecated.
|
Set |
getDefinedCommandIds()
Deprecated.
|
Set |
getDefinedKeyConfigurationIds()
Deprecated.
|
IKeyConfiguration |
getKeyConfiguration(String keyConfigurationId)
Deprecated.
|
Map |
getPartialMatches(KeySequence keySequence)
Deprecated.
|
String |
getPerfectMatch(KeySequence keySequence)
Deprecated.
|
boolean |
isPartialMatch(KeySequence keySequence)
Deprecated.
|
boolean |
isPerfectMatch(KeySequence keySequence)
Deprecated.
|
void |
removeCommandManagerListener(ICommandManagerListener commandManagerListener)
Deprecated.
|
@Deprecated void addCommandManagerListener(ICommandManagerListener commandManagerListener)
ICommandManagerListener
to listen
for changes to attributes of this instance.commandManagerListener
- the instance of ICommandManagerListener
to
register. Must not be null
. If an attempt is
made to register an instance of
ICommandManagerListener
which is already
registered with this instance, no operation is performed.@Deprecated Set getActiveContextIds()
Notification is sent to all registered listeners if this property changes.
null
. If this
set is not empty, it is guaranteed to only contain instances of
String
.@Deprecated String getActiveKeyConfigurationId()
Notification is sent to all registered listeners if this property changes.
null
. If this set
is not empty, it is guaranteed to only contains instances of
String
.@Deprecated String getActiveLocale()
Locale.getDefault()
, it may also be changed
at runtime by different implementations of command manager.
Notification is sent to all registered listeners if this property changes.
null
.@Deprecated String getActivePlatform()
SWT.getPlatform()
, it may also be
changed at runtime by different implementations of command manager.
Notification is sent to all registered listeners if this property changes.
null
.@Deprecated ICategory getCategory(String categoryId)
categoryId
- an identifier. Must not be null
@Deprecated ICommand getCommand(String commandId)
commandId
- an identifier. Must not be null
null
.@Deprecated Set getDefinedCategoryIds()
Returns the set of identifiers to defined categories.
Notification is sent to all registered listeners if this attribute changes.
null
. If this
set is not empty, it is guaranteed to only contain instances of
String
.@Deprecated Set getDefinedCommandIds()
Returns the set of identifiers to defined commands.
Notification is sent to all registered listeners if this attribute changes.
null
. If this
set is not empty, it is guaranteed to only contain instances of
String
.@Deprecated Set getDefinedKeyConfigurationIds()
Returns the set of identifiers to defined key configurations.
Notification is sent to all registered listeners if this attribute changes.
null
.
If this set is not empty, it is guaranteed to only contain
instances of String
.@Deprecated IKeyConfiguration getKeyConfiguration(String keyConfigurationId)
keyConfigurationId
- an identifier. Must not be null
@Deprecated Map getPartialMatches(KeySequence keySequence)
keySequence
- The prefix to look for; must not be null
.KeySequence
) to command identifiers (
String
). This map may be empty, but it is never
null
.@Deprecated String getPerfectMatch(KeySequence keySequence)
keySequence
- The key binding to look for; must not be null
.null
if none.@Deprecated boolean isPartialMatch(KeySequence keySequence)
keySequence
- The prefix to look for; must not be null
.true
if at least one command has a key binding
that starts with keySequence
;false
otherwise.@Deprecated boolean isPerfectMatch(KeySequence keySequence)
keySequence
- The key binding to look for; must not be null
.true
if a command has a matching key binding;
false
otherwise.@Deprecated void removeCommandManagerListener(ICommandManagerListener commandManagerListener)
ICommandManagerListener
listening for changes to attributes of this instance.commandManagerListener
- the instance of ICommandManagerListener
to
unregister. Must not be null
. If an attempt is
made to unregister an instance of
ICommandManagerListener
which is not already
registered with this instance, no operation is performed.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.