The default IBM Sales Center accelerator keys are defined
by the
org.eclipse.ui.commands extension point in the com.ibm.commerce.telesales.ui.impl
plug-in. This section explains how to add a key binding.
About this task
To define a new key binding:
Procedure
- Define a new key configuration using the org.eclipse.ui.commands
extension point. Your new key configuration will use com.ibm.commerce.telesales.ui.telesalesAcceleratorConfiguration
as the parentId. Define your new key binding using the keyBinding
element
of the org.eclipse.ui.commands extension point. Ensure that you specify
the
ID of your new key configuration for the configurationId attribute.
For example:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
point="com.ibm.commerce.telesales.configurator">
<configurator path="config"/>
</extension>
<extension point="org.eclipse.ui.commands">
<keyConfiguration
name="Extended key configuration"
description="extended key configuration"
parentId="com.ibm.commerce.telesales.ui.telesalesAcceleratorConfiguration"
id="extensions.extendedAcceleratorConfiguration">
</keyConfiguration>
<keyBinding
commandId="myCommandId"
keySequence="Ctrl+M"
keyConfigurationId="extensions.extendedAcceleratorConfiguration">
</keyBinding>
</extension>
</plugin>
Note: if your binding is for
a new
command, then define a command element and ensure that your command
is associated
with an action.
- Use the system configurator
to replace com.ibm.commerce.telesales.ui.telesalesAcceleratorConfiguration
with your new key configuration:
com.ibm.commerce.telesales.ui.telesalesAcceleratorConfiguration=extensions.extendedAcceleratorConfiguration