Teamcenter 插件开发 plugin.xml 入门

博客可能围绕Teamcenter(TC)展开,但内容缺失,推测会涉及该技术的相关信息,它在信息技术领域可能有特定应用场景和功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在这里插入图片描述

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <!-- point 属性定义扩展点-->
   <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"><!--点击 二级菜单(1) 后执行此处 class 中的代码-->
      </handler>
      <handler
            commandId="com.teamcenter.project.commands.menuTwo"
            class="com.teamcenter.project.handlers.menuTwoHandler"><!--点击 二级菜单(2) 后执行此处 class 中的代码-->
      </handler>
   </extension>
   
   <extension point="org.eclipse.ui.menus">
   	  <!-- locationURI 属性指定菜单扩展的位置 -->
      <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>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值