[英]Wizard categorizing in Eclipse plug-in development
I am creating an Eclipse plug-in . 我正在创建一个Eclipse插件。 and create two wizards for creating project and file and put under a catogory event.
并创建两个用于创建项目和文件的向导,并将其置于分类事件下。 When I run the plug-in these two comes under other.
当我运行插件时,这两个位于其他位置。 I need to be there
我要去那里
new -> eventproject and new -> eventfile
and eventproject wizard should list under Project catogory 和eventproject向导应在“项目类别”下列出
new -> project -> eventproject
and file should list under file catogory 并且文件应在文件类别下列出
new -> file -> eventfile
I am adding my plugin.xml file with this 我正在添加我的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>
I got the answer. 我得到了答案。 There is no file category but there is Project category so I change my plugin.xml as follows
没有文件类别,但是有项目类别,因此我如下更改了我的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.