我正在创建一个Eclipse插件。并创建两个用于创建项目和文件的向导,并置于一个catogory事件之下。当我运行插件时,这两个插件位于其他插件之下。我需要在那里
new -> eventproject and new -> eventfile
和eventproject向导应列在Project catogory
下new -> project -> eventproject
和文件应列在文件catogory
下new -> file -> eventfile
我正在使用此
添加我的plugin.xml文件 <plugin>
<extension
point="org.eclipse.ui.newWizards">
<category
id="event"
name="Event">
</category>
<wizard
name="EventFile"
icon="icons/sample.gif"
category="event"
class="plugin.newfile.wizards.NewFile"
id="plugin.newfile.wizards.NewFile">
</wizard>
</extension>
<extension
point="org.eclipse.ui.newWizards">
<category
id="event"
name="Event">
</category>
<wizard
category="event"
class="eventjplugin.wizard.ProjectNewWizard"
finalPerspective="eventjplugin.perspectives"
icon="icons/sample.gif"
id="eventjplugin.wizard.new.event"
name="EventProject">
</wizard>
</extension>
答案 0 :(得分:1)
我得到了答案。没有文件类别,但有Project类别,所以我更改了我的plugin.xml,如下所示
<plugin>
<extension
point="org.eclipse.ui.newWizards">
<category
id="event"
name="Event">
</category>
<wizard
name="EventFile"
icon="icons/sample.gif"
category="event"
class="plugin.newfile.wizards.NewFile"
id="plugin.newfile.wizards.NewFile">
</wizard>
</extension>
<extension
point="org.eclipse.ui.newWizards">
<category
id="event"
name="Event">
</category>
<wizard
category="event"
class="eventjplugin.wizard.ProjectNewWizard"
finalPerspective="eventjplugin.perspectives"
icon="icons/sample.gif"
id="eventjplugin.wizard.new.event"
project ="true"
name="EventProject">
</wizard>
</extension>