Teamcenter 插件开发 plugin.xml 入门

在这里插入图片描述



<plugin>
   
   <extension point="org.eclipse.ui.commands">
      <command
            name="二级菜单(1)"
            id="com.teamcenter.project.commands.menuOne">
      command>
      <command
            name="二级菜单(2)"
            id="com.teamcenter.project.commands.menuTwo">
      command>
   extension>
   
   <extension point="org.eclipse.ui.handlers">
      <handler
            commandId="com.teamcenter.project.commands.menuOne"
            class="com.teamcenter.project.handlers.menuOneHandler">
      handler>
      <handler
            commandId="com.teamcenter.project.commands.menuTwo"
            class="com.teamcenter.project.handlers.menuTwoHandler">
      handler>
   extension>
   
   <extension point="org.eclipse.ui.menus">
   	  
      <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=additions">
         <menu label="Tc菜单" id="com.teamcenter.project.menus.topLevel">
			<menu label="一级菜单" id="com.teamcenter.project.menus.oneLevel">
				<command
					commandId="com.teamcenter.project.commands.menuOne"
					id="com.teamcenter.project.menus.menuOne">
				command>
				<command
					commandId="com.teamcenter.project.commands.menuTwo"
					id="com.teamcenter.project.menus.menuTwo">
				command>
			menu>
         menu>
      menuContribution>
   extension>
   
plugin>

你可能感兴趣的:(Teamcenter 插件开发 plugin.xml 入门)