|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICommandService
Provides services related to the command architecture within the workbench. This service can be used to access the set of commands and command categories.
EXPERIMENTAL. The commands architecture is currently under development for Eclipse 3.1. This class -- its existence, its name and its methods -- are in flux. Do not use this class yet.
Method Summary | |
---|---|
void |
addExecutionListener(IExecutionListener listener)
Adds an execution listener to the command service. |
Category |
getCategory(java.lang.String categoryId)
Retrieves the category with the given identifier. |
Command |
getCommand(java.lang.String commandId)
Retrieves the command with the given identifier. |
java.util.Collection |
getDefinedCategoryIds()
Returns the collection of the identifiers for all of the defined categories in the workbench. |
java.util.Collection |
getDefinedCommandIds()
Returns the collection of the identifiers for all of the defined commands in the workbench. |
void |
readRegistry()
Reads the command information from the registry and the preferences. |
void |
removeExecutionListener(IExecutionListener listener)
Removes an execution listener from the command service. |
Method Detail |
---|
void addExecutionListener(IExecutionListener listener)
listener
- The listener to add; must not be null
.Category getCategory(java.lang.String categoryId)
categoryId
- The identifier to find; must not be null
.
Command getCommand(java.lang.String commandId)
commandId
- The identifier to find; must not be null
.
java.util.Collection getDefinedCategoryIds()
String
)
that are defined; never null
, but may be empty.java.util.Collection getDefinedCommandIds()
String
)
that are defined; never null
, but may be empty.void readRegistry()
Reads the command information from the registry and the preferences. This will overwrite any of the existing information in the command service. This method is intended to be called during start-up. When this method completes, this command service will reflect the current state of the registry and org.eclipse.jface.preference store.
void removeExecutionListener(IExecutionListener listener)
listener
- The listener to remove; must not be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |