<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>

   <extension
         point="org.eclipse.ui.actionSets">
      <actionSet
            label="サンプルのアクション・セット"
            visible="true"
            id="jp.sf.amateras.action.actionSet">
         <menu
               label="サンプル・メニュー(&amp;M)"
               id="sampleMenu">
            <separator
                  name="sampleGroup">
            </separator>
         </menu>
         <action
               label="サンプル・アクション(&amp;S)"
               icon="icons/sample.gif"
               class="jp.sf.amateras.action.actions.SampleAction"
               tooltip="Hello, Eclipse world"
               menubarPath="sampleMenu/sampleGroup"
               toolbarPath="sampleGroup"
               definitionId="jp.sf.amateras.action.actions.SampleCommand"
               id="jp.sf.amateras.action.actions.SampleAction">
         </action>
      </actionSet>
   </extension>

   <extension
         point="org.eclipse.ui.commands">
      <category
            id="jp.sf.amateras.action.category"
            name="サンプル"/>
      <command
            categoryId="jp.sf.amateras.action.category"
            id="jp.sf.amateras.action.actions.SampleCommand"
            name="サンプル・コマンド"/>
      <category
            id="jp.sf.amateras.action.commands.category"
            name="サンプル・カテゴリー">
      </category>
      <command
            categoryId="jp.sf.amateras.action.commands.category"
            id="jp.sf.amateras.action.commands.sampleCommand"
            name="Sample Command">
      </command>
   </extension>

   <extension
         point="org.eclipse.ui.bindings">
      <key
            commandId="jp.sf.amateras.action.actions.SampleCommand"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="CTRL+ALT+S"/>
      <key
            commandId="jp.sf.amateras.action.commands.sampleCommand"
            contextId="org.eclipse.ui.contexts.window"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="M1+6">
      </key>
   </extension>

   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="jp.sf.amateras.action.handlers.SampleHandler"
            commandId="jp.sf.amateras.action.commands.sampleCommand">
      </handler>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="menu:org.eclipse.ui.main.menu?after=additions">
         <menu
               id="jp.sf.amateras.action.menus.sampleMenu"
               label="サンプル・メニュー"
               mnemonic="M">
            <command
                  commandId="jp.sf.amateras.action.commands.sampleCommand"
                  id="jp.sf.amateras.action.menus.sampleCommand"
                  mnemonic="S">
            </command>
         </menu>
      </menuContribution>
      <menuContribution
            locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
         <toolbar
               id="jp.sf.amateras.action.toolbars.sampleToolbar">
            <command
                  commandId="jp.sf.amateras.action.commands.sampleCommand"
                  icon="icons/sample.gif"
                  id="jp.sf.amateras.action.toolbars.sampleCommand"
                  tooltip="Say hello world">
            </command>
         </toolbar>
      </menuContribution>
   </extension>

</plugin>
