PLM之家PLMHome-工业软件践行者

谁有开发过这个override Teamcenter commands 求教。。

  [复制链接]

2018-11-27 09:20:52 3796 3

chris 发表于 2017-11-2 16:23:56 |阅读模式

chris 楼主

2017-11-2 16:23:56

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

x
  谁有开发过这个override Teamcenter commands 求教。。4 ?% n8 ?2 t5 Q
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"?>
+ k) F0 ~( P, U# f* H" v4 g! @/ x<?eclipse version="3.4"?>: G1 q! l$ G* V
<plUGin>
4 _+ v/ _0 L, J% r                           2 t, ]: ?, Y8 A7 K8 T& D
        <extension point="org.eclipse.ui.commands">
7 ?% k% S+ t  f7 O          
% M! M( L: y& O0 T, N$ R! X6 c           <category name="Sample Category" id="com.mycom.myitem.commands.category" />4 h: k0 L0 `" H. `+ O7 z
           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"8 B+ r* A% w  _# B3 |
                        id="com.mycom.myitem.commands.sampleCommand"/>
) h( v: a8 J- _         & @" G2 e3 e, P! J% h
   </extension>% e" ]9 k1 q8 N3 t# t. t+ L( c
1 n1 G  S' `8 ~2 D3 j: [
   <extension point="org.eclipse.ui.handlers">
7 n; K$ s6 Q' g, j; l- C+ y1 \           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>; }/ G- G! L: C& [
8 X( O8 B& e2 b- @
      </extension>6 e4 `; J$ K7 N/ X# w8 {- J" m; D

( J, [, h# i0 e   <extension point="org.eclipse.ui.handlers">: w" R8 f- N+ @: w
            # y6 j9 c1 l0 f, R& ?1 L3 A
                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">
9 K3 b0 q: e% ^6 d) ~' Z( y, A                        <activeWhen>. m6 w  \& ^" P. |- L" d
                                <iterate ifEmpty="false">9 q' [# U! w4 r& a7 }/ r
                                        <and># G; ~* ?6 W' j5 n
                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">
/ w! Q, O2 i9 ]) @, E                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
7 V% z+ |1 E$ r; D# w                                                </adapt>/ j) H. S$ m# o# f
                                        </and>1 i# O6 e+ p0 n9 s4 |& x
                                </iterate>
: f$ f2 v( i1 u                        </activeWhen>
) v) J9 i: ?! r9 G5 `& O8 o                </handler>1 a2 s) ^" f" Q2 A
   </extension>
" ^2 M, @2 y) {. G& D8 U4 `0 z' O0 N: R4 x2 S6 }
        <extension point="org.eclipse.ui.bindings">* F7 n% ]: i% c( @; I; l
                        <key commandId="com.mycom.myitem.commands.sampleCommand"6 E8 E% p! _8 x/ [
                                contextId="org.eclipse.ui.contexts.window"
6 o4 T# a$ n* c$ o; Q+ V5 W                                sequence="M1+6"; \& V; x, M( _3 e
                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
1 l' }% _" I5 j/ T                           </key>  }. z4 }. ]% a- Q/ z% O
           </extension>! c0 r( P# U+ I4 w. n5 B
                           7 w7 ?# P8 @" ^( ~7 }3 k
       
& G3 V0 d- j" \  K7 E' p</plugin>
1 K! w; z' v# Z: K
" W# B. p+ u1 y% t  i0 {$ ]2 W. M5 H9 n9 L5 k2 n1 ]6 b1 R
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复

使用道具 举报

全部回复3

pzc1350 发表于 2018-11-26 21:12:07

pzc1350 板凳

2018-11-26 21:12:07

<?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="menurg.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="toolbarrg.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>
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复 支持 反对

使用道具 举报

chris 发表于 2018-11-27 09:20:52

chris 地板

2018-11-27 09:20:52

pzc1350 发表于 2018-11-26 21:12
9 U9 g7 f- g1 E* w) d...

/ [2 J6 z! i* r5 N( M! T. c这个好像是让菜单显示在工具栏上。重写TC中的菜单命令好像跟着那个pdf文档写,好像不能实现。
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复 支持 反对

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了