JSPのテンプレート

以前にここに書いてはいたが、この記述だとターゲットCPUに限らず、全てのテンプレートにでてくるので気になっていた。
で、ぐぐってみると私の後ろの席な方しか引っかからない。
でも、よく読みなおして以下のように「convertTo」のIDに変更することでターゲットCPU別にテンプレートが表示できるらしい。
ちなみにarmの教材はこんな感じ。

<plugin>
   <extension
         point="jp.pizzafactory.toppers.kernels.templateOperation">
      <template>
         <projectType projectTypeId="cdt.managedbuild.target.gnu.arm.elf.exe"/>
         <templateProvider name="cup_timer">
            <file path="examples/cup_timer/cup_timer.c"/>
            <file path="examples/cup_timer/cup_timer.h"/>
            <file path="examples/cup_timer/jsp_prog.cfg"/>
            <file path="examples/common/device.c"/>
            <file path="examples/common/device.h"/>
            <file path="examples/common/makefile.init"/>
            <file path="examples/common/makefile.targets"/>
            <file path="examples/common/.gdb_ram.ini"/>
            <kernel kernelId="jp.pizzafactory.toppers.kernels.jsp"/>
         </templateProvider>
      </template>
   </extension>
</plugin>

JSPはターゲットCPUだけなく、ターゲットデバイス毎にprojectTypeを指定できるはず…と思ってこんな感じに

<projectType projectTypeId="pizza.toppers.jsp.armv4.at91sam7s.gnu.exe"/>

と指定しても他のarmターゲットでもテンプレートが表示されてしまった。うーむ。