谁有开发过这个override Teamcenter commands 求教。。
谁有开发过这个override Teamcenter commands 求教。。file:///C:\Users\Admin\AppData\Roaming\Tencent\Users\1092333185\QQ\WinTemp\RichOle\){}F_KHAUSEAB9(NXBGE2$5.pngfile:///C:\Users\Admin\AppData\Roaming\Tencent\Users\1092333185\QQ\WinTemp\RichOle\){}F_KHAUSEAB9(NXBGE2$5.png<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension point="org.eclipse.ui.commands">
<category name="Sample Category" id="com.mycom.myitem.commands.category" />
<command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
id="com.mycom.myitem.commands.sampleCommand"/>
</extension>
<extension point="org.eclipse.ui.handlers">
<handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
</extension>
<extension point="org.eclipse.ui.handlers">
<handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">
<activeWhen>
<iterate ifEmpty="false">
<and>
<adapt type="com.teamcenter.rac.kernel.TCComponent">
<test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
</adapt>
</and>
</iterate>
</activeWhen>
</handler>
</extension>
<extension point="org.eclipse.ui.bindings">
<key commandId="com.mycom.myitem.commands.sampleCommand"
contextId="org.eclipse.ui.contexts.window"
sequence="M1+6"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
</key>
</extension>
</plugin>
求助。。。 <?xml version="1.0" encoding="UTF-8"?> <?eclipse version="3.4"?> <plugin> <extension point="org.eclipse.ui.commands"> <category name="Sample Category" id="handler.commands.category"> </category> <command name="Sample Command" categoryId="handler.commands.category" id="handler.commands.sampleCommand"> </command> </extension> <extension point="org.eclipse.ui.handlers"> <handler commandId="handler.commands.sampleCommand" class="handler.handlers.SampleHandler"> </handler> </extension> <extension point="org.eclipse.ui.bindings"> <key commandId="handler.commands.sampleCommand" contextId="org.eclipse.ui.contexts.window" sequence="M1+6" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"> </key> </extension> <extension point="org.eclipse.ui.menus"> <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=additions"> <menu label="Sample Menu" mnemonic="M" id="handler.menus.sampleMenu"> <command commandId="handler.commands.sampleCommand" mnemonic="S" id="handler.menus.sampleCommand"> </command> </menu> </menuContribution> <menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions"> <toolbar id="handler.toolbars.sampleToolbar"> <command commandId="handler.commands.sampleCommand" icon="icons/sample.gif" tooltip="Say hello world" id="handler.toolbars.sampleCommand"> </command> </toolbar> </menuContribution> </extension></plugin> pzc1350 发表于 2018-11-26 21:12
...
这个好像是让菜单显示在工具栏上。重写TC中的菜单命令好像跟着那个pdf文档写,好像不能实现。
页:
[1]