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

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

  [复制链接]

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

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

chris 楼主

2017-11-2 16:23:56

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

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

x
  谁有开发过这个override Teamcenter commands 求教。。
* T* [0 @4 h) C: ^: a, Cfile:///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"?>  o) L. r% W5 y
<?eclipse version="3.4"?>* v0 w( w. p) j- h; |( \7 k
<plUGin>' V0 l4 Q0 d( A
                           2 u+ T& F4 O) }9 U0 m, W0 ^, P
        <extension point="org.eclipse.ui.commands">
7 @/ i/ U% L9 S/ n' T& S$ ~          - N% l1 y6 J2 B; V. V
           <category name="Sample Category" id="com.mycom.myitem.commands.category" />+ N) ^& \: A- P( }
           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
; k" k& E" C+ ~8 I. y                        id="com.mycom.myitem.commands.sampleCommand"/>1 i5 t3 W5 U/ u
         : R  O( a5 e0 k4 k% z' e
   </extension>
& c2 A9 `! \1 I( j- T. a, I% h& e+ e$ u% L) t1 v, ]8 H
   <extension point="org.eclipse.ui.handlers">
0 C) Y/ n& q- A9 t           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
4 V  p, X$ o- h, z: g3 }; L9 e$ |, D4 e+ D% e
      </extension>
& m  Z" j% _6 P2 p2 U5 x  {, p- ]( w3 o1 Z
   <extension point="org.eclipse.ui.handlers">) @. I- f: r6 G* T
            9 @% H* ]) r% U
                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">
4 [" t! f; I8 m1 r                        <activeWhen>, S5 `/ R  N- I4 J; I8 s
                                <iterate ifEmpty="false">+ o, z& Q+ U6 s
                                        <and>
% R* t" c$ N) r0 u6 v! ~0 ?                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">0 Z. n- Z- V: E! _: a! T; d, P
                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
5 {" [+ g% H/ c# H- z  l8 B1 k' G3 H                                                </adapt>
) X; Q+ w7 J( a  u                                        </and>
* \& X% N) e8 J5 ~                                </iterate>
7 z9 A3 F: x9 |# J! f: D+ m# |5 L                        </activeWhen>. z$ x0 ~0 S' E1 M2 t% p, r
                </handler>
" `2 Y( E8 L0 c5 Y   </extension>
! Y4 L& A/ @8 O, e# w- e0 s
: P8 r2 J7 k. X! U& I" D6 J        <extension point="org.eclipse.ui.bindings">
: _. J% m! d! ^9 \2 s! r% _                        <key commandId="com.mycom.myitem.commands.sampleCommand"
, m, u7 [: d7 B' P& n2 y                                contextId="org.eclipse.ui.contexts.window"* X9 b- y4 q7 ^
                                sequence="M1+6"
5 I& O8 r" h3 f8 m  Y6 u2 `                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"># |+ j  T: ?  t7 {+ O- W! p+ l7 \
                           </key>
- j# y- Z7 s- O& x" W- u3 l$ D           </extension>
: ~! @  o, c& Q                           - S9 z$ ?: x/ E" O, P
       
/ R0 C) _" w7 ?, P7 |</plugin>5 [4 j# J, D; O; i5 a& Q

! D$ G& K, n0 f5 t* i
8 V) q. j9 F, W0 F& i
上海点团信息科技有限公司,承接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. R5 H2 D1 V) |  k3 v& c: A
...

, d1 v6 R: S% p3 S9 U$ ~这个好像是让菜单显示在工具栏上。重写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二次开发专题模块培训报名开始啦

    我知道了