Java Eclipse插件开发中的向导分类

Java Eclipse插件开发中的向导分类,java,xml,eclipse,eclipse-plugin,Java,Xml,Eclipse,Eclipse Plugin,我正在创建一个Eclipse插件。并创建两个用于创建项目和文件的向导,并将其置于catogory事件下。当我运行插件时,这两个在另一个之下。我需要在那里 new -> eventproject and new -> eventfile 和eventproject向导应列在Project catogory下 new -> project -> eventproject 和文件应列在文件目录下 new -> file -> eventfile 我正在用这个添

我正在创建一个Eclipse插件。并创建两个用于创建项目和文件的向导,并将其置于catogory事件下。当我运行插件时,这两个在另一个之下。我需要在那里

new -> eventproject and new -> eventfile
和eventproject向导应列在Project catogory下

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>


请您重新表述一下您的问题好吗?您的向导是出现在错误的类别中,还是根本没有出现在任何类别中?问题开头列出的类别与plugin.xml中的类别不匹配没有
文件
类别。