|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
void | addCommandManagerListener(ICommandManagerListener commandManagerListener)
Registers an instance of ICommandManagerListener to listen for changes to attributes of this instance. |
Set | getActiveContextIds()
Returns the set of identifiers to active contexts. |
String | getActiveKeyConfigurationId()
Returns the active key configuration. |
String | getActiveLocale()
Returns the active locale. |
String | getActivePlatform()
Returns the active platform. |
ICategory | getCategory(String categoryId)
Returns a handle to a category given an identifier. |
ICommand | getCommand(String commandId)
Returns a handle to a command given an identifier. |
Set | getDefinedCategoryIds()
Returns the set of identifiers to defined categories. |
Set | getDefinedCommandIds()
Returns the set of identifiers to defined commands. |
Set | getDefinedKeyConfigurationIds()
Returns the set of identifiers to defined key configurations. |
IKeyConfiguration | getKeyConfiguration(String keyConfigurationId)
Returns a handle to a key configuration given an identifier. |
Map | getPartialMatches(KeySequence keySequence)
Finds all of the commands which have key bindings that start with the given key sequence. |
String | getPerfectMatch(KeySequence keySequence)
Finds the command which has the given key sequence as one of its key bindings. |
boolean | isPartialMatch(KeySequence keySequence)
Checks to see whether there are any commands which have key bindings that start with the given key sequence. |
boolean | isPerfectMatch(KeySequence keySequence)
Checks to see if there is a command with the given key sequence as one of its key bindings. |
void | removeCommandManagerListener(ICommandManagerListener commandManagerListener)
Unregisters an instance of ICommandManagerListener listening for changes to attributes of this instance. |
Method Detail |
public void addCommandManagerListener(ICommandManagerListener commandManagerListener)
public Set getActiveContextIds()
Notification is sent to all registered listeners if this property changes.
public String getActiveKeyConfigurationId()
Notification is sent to all registered listeners if this property changes.
public String getActiveLocale()
Notification is sent to all registered listeners if this property changes.
public String getActivePlatform()
Notification is sent to all registered listeners if this property changes.
public ICategory getCategory(String categoryId)
public ICommand getCommand(String commandId)
public Set getDefinedCategoryIds()
Returns the set of identifiers to defined categories.
Notification is sent to all registered listeners if this attribute changes.
public Set getDefinedCommandIds()
Returns the set of identifiers to defined commands.
Notification is sent to all registered listeners if this attribute changes.
public Set getDefinedKeyConfigurationIds()
Returns the set of identifiers to defined key configurations.
Notification is sent to all registered listeners if this attribute changes.
public IKeyConfiguration getKeyConfiguration(String keyConfigurationId)
public Map getPartialMatches(KeySequence keySequence)
public String getPerfectMatch(KeySequence keySequence)
public boolean isPartialMatch(KeySequence keySequence)
public boolean isPerfectMatch(KeySequence keySequence)
public void removeCommandManagerListener(ICommandManagerListener commandManagerListener)
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.