Remapping keys for ZIETrans rich client applications

In the rich client environment, default keyboard mappings are defined in the plugin.xml file of the ZIETrans RCP Runtime Extension plug-in and apply to all ZIETrans rich client applications running in the same environment.

An Eclipse keyboard context is used to influence what commands are available to the user at any given moment. When a user is using a ZIETrans transformation view, the ZIETrans keyboard context is used. This context is registered in the plugin.xml file of the ZIETrans RCP Runtime Extension plug-in. The following example shows how this appears:
<extension 
      point="org.eclipse.ui.contexts">
   <context
         name="%KEYBOARD_CONTEXT_NAME"
         description="%KEYBOARD_CONTEXT_NAME"
         id="com.ibm.hats.rcp.transformationContext"
         parentId="org.eclipse.ui.contexts.window">
   </context>
</extension>
The default keyboard mappings are also defined in the plugin.xml file. The following example shows how a key mapping for a ZIETrans application running in Eclipse RCP appears in this file:
<extension
      point="org.eclipse.ui.commands">
   <category
         name="%COMMAND_CATEGORY_NAME"
         description"%COMMAND_CATEGORY_NAME"
         id="com.ibm.hats.rcp.transformationCategory"
   </category>
   <command
         name="[pf1]"
         category="com.ibm.hats.rcp.transformationCategory"
         id="com.ibm.hats.rcp.send_[pf1]">
   </command>
     ...
 </extension>

<extension
      point="org.eclipse.ui.bindings">
   <key
         commandId="com.ibm.hats.rcp.send_[pf1]"
         contextId="com.ibm.hats.rcp.transformationContext"
         configuration="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="F1"
   </key>
     ...
 </extension>