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.

135 lines
5.1 KiB

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="UDSStarup"
name="UDSStarup"
point="org.eclipse.ui.startup">
<startup class="com.uds.update.UDSStartup"/>
</extension>
<extension point="org.eclipse.ui.views">
<view
allowMultiple="false"
class="com.caxaviews.view.CaxaView"
id="com.caxaviews.view.CaxaView"
name="CAXA图纸查看">
</view>
</extension>
<extension
point="org.eclipse.ui.commands">
<command name="BOM批量管理" id="BOMManagement"></command>
<command name="批量下载数据集" id="BatchDownloadWebsite"/>
<command id="com.caxaviews.exportdataset.BatchExportDrawings" name="导出数据集"/>
<command id="com.caxaviews.create.createDataset" name="创建CAXA数据集"/>
<command id="com.caxaviews.create.viewExb" name="预览"/>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler commandId="BOMManagement" class="com.connor.jd.plm.handlers.BOMManagementHandler"></handler>
<handler commandId="BatchDownloadWebsite" class="com.connor.dfl.plm.dfl028.Dfl028Handler"/>
<handler class="com.caxaviews.exportdataset.BatchExportDrawings" commandId="com.caxaviews.exportdataset.BatchExportDrawings"> </handler>
<handler class="com.caxaviews.create.createDataset" commandId="com.caxaviews.create.createDataset"> </handler>
<handler class="com.caxaviews.view.ViewExbHandler" commandId="com.caxaviews.create.viewExb"> </handler>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="com.px.plm.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 id="com.px.plm.menus.sampleMenu" label="二开菜单" mnemonic="M">
<command
id="BOMManagement"
commandId="BOMManagement"
mnemonic="S">
</command>
<command
id="BatchDownloadWebsite"
commandId="BatchDownloadWebsite"
mnemonic="S">
</command>
</menu>
<menu
label="CAXA集成"
id="com.uds.tc.create.project.menus.sampleMenu">
<command
commandId="com.caxaviews.exportdataset.BatchExportDrawings"
style="radio"
id="com.caxaviews.exportdataset.BatchExportDrawings">
<visibleWhen>
<and>
<with variable="rac_command_suppression">
<not>
<iterate operator="or">
<equals
value="com.caxaviews.exportdataset.BatchExportDrawings"/>
</iterate>
</not>
</with>
</and>
</visibleWhen>
</command>
<command
commandId="com.caxaviews.create.createDataset"
style="radio"
id="com.caxaviews.create.createDataset">
<visibleWhen>
<and>
<with variable="rac_command_suppression">
<not>
<iterate operator="or">
<equals
value="com.caxaviews.create.createDataset"/>
</iterate>
</not>
</with>
</and>
</visibleWhen>
</command>
</menu>
</menuContribution>
<menuContribution locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<command
commandId="com.caxaviews.create.viewExb" id="viewExb">
<visibleWhen>
<and>
<iterate ifEmpty="false">
<adapt
type="com.teamcenter.rac.kernel.TCComponent">
<or>
<test
property="com.teamcenter.rac.kernel.TCComponent.property"
args="object_type" value="U2_EXB">
</test>
<test
property="com.teamcenter.rac.kernel.TCComponent.property"
args="object_type" value="CAXA图纸">
</test>
</or>
</adapt>
</iterate>
</and>
<reference
definitionId="com.teamcenter.rac.ui.inMainPerspective">
</reference>
</visibleWhen>
</command>
</menuContribution>
</extension>
</plugin>