Eclipse plugin.xml简写command

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension point="org.eclipse.ui.commands">
      <command name="车间质量问责分析处理报告" id="com.xpm.plm.handlers.NewQualityReportHandler"
            defaultHandler="com.xpm.plm.handlers.NewQualityReportHandler">
      </command>
      <command name="返工日期确认单" id="com.xpm.plm.handlers.NewReworkHandler"
            defaultHandler="com.xpm.plm.handlers.NewReworkHandler">
      </command>
      <command name="质量信息反馈" id="com.xpm.plm.handlers.NewFeedbackHandler"
            defaultHandler="com.xpm.plm.handlers.NewFeedbackHandler">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="menu:org.eclipse.ui.main.menu?after=additions">         
         <menu
               id="com.xpm.plm.menus.QualityMenu"
               label="质量模块"
               mnemonic="M">
               <menu
		               id="com.xpm.plm.menus.QualityMenu2"
		               label="新建"
		               icon="icons/add.png"
		               mnemonic="M">
		            <command
		                  commandId="com.xpm.plm.handlers.NewFeedbackHandler"
		                  id="com.xpm.plm.handlers.NewFeedbackHandler"
		                  mnemonic="S">
		            </command>
		            <command
		                  commandId="com.xpm.plm.handlers.NewReworkHandler"
		                  id="com.xpm.plm.handlers.NewReworkHandler"
		                  mnemonic="S">
		            </command>
         		</menu>
               
         </menu>
      </menuContribution>
   </extension>
</plugin>
posted @ 2023-10-19 10:55  一个小笨蛋  阅读(9)  评论(0编辑  收藏  举报