这是我的plugin.xml
<plugin>
<extension point="org.eclipse.ui.newWizards">
<category
id="root"
name="Root Category">
</category>
<category
id="first_subcategory"
name="Sub Category"
parentCategory="root">
</category>
<wizard
id="first_leaf_of_subcategory"
name="Wizard of First Subcategory"
category="root/first_subcategory"
icon="./icons/sample.gif"
class="com.myplugin.WizFirstSubCategory"
project="true"
>
<description>
Create a simple wizard of First Subcategory
</description>
</wizard>
</extension>
</plugin>
我运行我的插件作为Eclipse应用程序我没有找到我写的三个。 我想要“New - &gt; Project”打开向导,里面有“Root Category - &gt; Sub Category - &gt; Wizard of First Subcategory”但不起作用
如果我删除Subcategory并直接在root插件中引用first_leaf_of_subcategory,如果我插入子类别不起作用。
我阅读了文档Here
由于
答案 0 :(得分:3)
最后这棵树适合我。
<plugin>
<extension point="org.eclipse.ui.newWizards">
<!-- ROOT CATEGORY -->
<category
id="root_category"
name="Root Category">
</category>
<!-- FIRST SUB CATEGORY -->
<category
id="first_sub_category"
name="First Sub Category"
parentCategory="root_category">
</category>
<wizard
id="firstWizS1"
name="First Wiz S1"
category="root_category/first_sub_category"
icon="./icons/firstWizS1.png"
class="com.mycategory.FirstWizS1"
project="true">
</wizard>
<wizard
id="secondWizS1"
name="Second Wiz S1"
category="root_category/first_sub_category"
icon="./icons/secondWizS1.png"
class="com.mycategory.SecondWizS1"
project="true">
</wizard>
<!-- SECOND SUB CATEGORY -->
<category
id="second_sub_category"
name="Second Sub Category"
parentCategory="root_category">
</category>
<wizard
id="firstWizS2"
name="First Wiz S2"
category="root_category/second_sub_category"
icon="./icons/firstWizS2.png"
class="com.mycategory.FirstWizS2"
project="true">
</wizard>
<wizard
id="secondWizS1"
name="Second Wiz S1"
category="root_category/second_sub_category"
icon="./icons/secondWizS2.png"
class="com.mycategory.SecondWizS2"
project="true">
</wizard>
</extension>
</plugin>