You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
4.9 KiB

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.commands">
<command
id="com.mycom.my_app.mycommand"
name="自动编码后台管理">
</command>
<command
id="PropertyToWordOrExcelCommand"
name="提取属性到Word/Excel">
</command>
<command
id="com.teamcenter.rac.ui.applicationAutoSortingPSECommand"
name="明细序号自动生成">
</command>
<command
id="com.teamcenter.rac.ui.WXYSJReportWYCheckCommand"
name="检查同层零部件唯一性">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="com.teamcenter.rac.handlers.LegacyHandler:MyAction:com.teamcenter.rac.common.actions.actions"
commandId="com.mycom.my_app.mycommand">
</handler>
<handler commandId="PropertyToWordOrExcelCommand" class="PropertyToFile.handlers.PropertyToHandler"/>
<handler
class="com.origin.rac.handler.WXYSJApplicationAutoSortingPSEHandler"
commandId="com.teamcenter.rac.ui.applicationAutoSortingPSECommand">
</handler>
<handler
class="com.origin.rac.handler.WXYSJReportWYCheckHandler"
commandId="com.teamcenter.rac.ui.WXYSJReportWYCheckCommand">
</handler>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="CodeManagement.commands.sampleCommand"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
contextId="org.eclipse.ui.contexts.window"
sequence="M1+6">
</key>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu
label="锡压系统管理员菜单"
mnemonic="M">
<command
commandId="com.mycom.my_app.mycommand"
mnemonic="S"
id="com.mycom.my_app.mycommand">
<visibleWhen checkEnabled="true">
<with variable="rac_command_suppression">
<not>
<iterate operator="or">
<equals value="com.mycom.my_app.mycommand">
</equals>
</iterate>
</not>
</with>
</visibleWhen>
</command>
</menu>
</menuContribution>
<menuContribution
locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu
label="客户化菜单"
mnemonic="M">
<menu
label="应用">
<command
commandId="com.teamcenter.rac.ui.applicationAutoSortingPSECommand"
label="明细序号自动生成">
</command>
<command
commandId="com.teamcenter.rac.ui.WXYSJReportWYCheckCommand"
label="检查同层零部件唯一性">
</command>
</menu>
</menu>
</menuContribution>
<!--
<menuContribution
locationURI="menu:customization?after=customizationStart">
<menu label="客户化功能">
<menu
label="应用">
<command
commandId="com.teamcenter.rac.ui.applicationAutoSortingPSECommand"
label="明细序号自动生成">
</command>
<command
commandId="com.teamcenter.rac.ui.WXYSJReportWYCheckCommand"
label="检查同层零部件唯一性">
<visibleWhen>
<reference
definitionId="com.teamcenter.rac.pse.inMainView">
</reference>
</visibleWhen>
</command>
</menu>
</menu>
</menuContribution>
-->
<!-- 右键-->
<menuContribution locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<command id="PropertyToWordOrExcelCommand" commandId="PropertyToWordOrExcelCommand">
<visibleWhen checkEnabled="true">
<and>
<iterate ifEmpty="false">
<adapt type="com.teamcenter.rac.kernel.TCComponent">
<or>
<test property="com.teamcenter.rac.kernel.TCComponent.typeClass"
value="ItemRevision">
</test>
</or>
</adapt>
</iterate>
<with variable="rac_command_suppression">
<not>
<iterate operator="or">
<equals value="PropertyToWordOrExcelCommand" />
</iterate>
</not>
</with>
</and>
</visibleWhen>
</command>
</menuContribution>
</extension>
</plugin>