[英]Wizard categorizing in Eclipse plug-in development
我正在创建一个Eclipse插件。 并创建两个用于创建项目和文件的向导,并将其置于分类事件下。 当我运行插件时,这两个位于其他位置。 我要去那里
new -> eventproject and new -> eventfile
和eventproject向导应在“项目类别”下列出
new -> project -> eventproject
并且文件应在文件类别下列出
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>
我得到了答案。 没有文件类别,但是有项目类别,因此我如下更改了我的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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.