|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The key binding service is responsible for invoking an action
when the action's sequence of accelerator keys is pressed. The
accelerator key sequence assigned to an action is defined by the
extension point org.eclipse.ui.acceleratorSets
and the
active accelerator configuration choosen by the user.
A participating workbench part is responsible to register all its actions with the service. The part is also responsible to set the current scope.
This interface is not intended to be implemented or extended by clients.
Method Summary | |
void |
enable(boolean enable)
Enables or Disables this service. |
String |
getActiveAcceleratorConfigurationId()
Returns the id of the active accelerator configuration. |
String |
getActiveAcceleratorScopeId()
Returns the id of the active accelerator scope. |
boolean |
processKey(KeyEvent event)
To be called by an editor upon receiving a key event from its SWT text widget. |
void |
registerAction(IAction action)
Registers an action with the key binding service. |
void |
setActiveAcceleratorScopeId(String scopeId)
Sets the active accelerator scope id. |
Method Detail |
public String getActiveAcceleratorConfigurationId()
public String getActiveAcceleratorScopeId()
public boolean processKey(KeyEvent event)
event
- The key to be processed
public void registerAction(IAction action)
action
- the action to be registered with the key binding servicepublic void setActiveAcceleratorScopeId(String scopeId)
scopeId
- the new accelerator scope idpublic void enable(boolean enable)
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |