Thursday, May 31, 2007

Adding a cheat sheet menu action

Creating a cheat sheet using the org.eclipse.ui.cheatsheets.cheatSheetContent extension is well documented. What is not documented is how to add the cheat sheet action to your application help menu. You need to make your application plugin depend upon the org.eclipse.ui.cheatsheets plugin. Then add the following extension:
<extension point="org.eclipse.ui.actionSets">
  <actionSet
      label="Cheat Sheets"
      visible="true"
      id="org.eclipse.ui.cheatsheets.actionSet">
     <action
        label="Cheat Sheets"
        class="org.eclipse.ui.cheatsheets.
               CheatSheetExtensionFactory:helpMenuAction"
        menubarPath="help/group.tutorials"
        id="org.eclipse.ui.cheatsheets.
            actions.CheatSheetHelpMenuAction">
     </action>
  </actionSet>
</extension>

1 comment:

Uda said...

Thank you sooo much!! I was looking for this for a long time.. :)