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

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

  [复制链接]

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

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

chris 楼主

2017-11-2 16:23:56

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

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

x
  谁有开发过这个override Teamcenter commands 求教。。
. O' L# R) S6 k7 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"?>
9 X  f( a# j9 q. K. y+ Y<?eclipse version="3.4"?>
% b- O% P& T& Y: q4 Y6 t* }<plUGin>
* X  |; t# O# L9 w                           ! S. R3 c& N0 I/ P; @: O
        <extension point="org.eclipse.ui.commands">
; A' G0 }) Z2 f) c# k0 \( O          0 Y+ Q# }0 O; H* J0 h
           <category name="Sample Category" id="com.mycom.myitem.commands.category" />
& h) h$ V- }0 J9 \9 O4 R6 z           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category". g: O4 A8 x* ?/ X6 E- D
                        id="com.mycom.myitem.commands.sampleCommand"/>
$ \9 y! _8 W; _3 X, q& \( m         , k! T9 n0 g8 Z; m# w
   </extension>; }7 ^! n# H( j2 Q; l

* h3 d/ y* e" Y# Q4 [) \   <extension point="org.eclipse.ui.handlers">9 l8 e$ H& M: S1 g* [
           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>0 `! \/ g/ X: A0 p
) y/ C4 y9 F  m
      </extension>. A* @! c) _$ H+ T7 t+ j
# @# y* P3 y+ h1 d9 W1 n2 I0 S
   <extension point="org.eclipse.ui.handlers">
5 T0 @0 n4 e9 F% E4 b2 x7 g            
& G4 B0 W. d8 P) }% C, T. m2 b                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">8 ~6 W9 \. _. Z
                        <activeWhen>
0 Y8 i" {1 S, a% n                                <iterate ifEmpty="false">1 O4 q5 v0 A3 p. @
                                        <and>
! c6 F) X$ T, g" t                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">; j  s* U; R4 W& Q: E  c6 Q
                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
& q5 m7 D, T3 C                                                </adapt>  q% B7 C- v! U  U
                                        </and>
4 U- O  L2 D* `6 @/ x2 @. w                                </iterate>; b2 ~. |8 A! W* k
                        </activeWhen>" V  W3 T% j& o; y
                </handler>
: A, {1 w2 I  g1 q" F) V7 k& E   </extension># w0 h+ x, D6 \# I8 x5 `! y* K# \
7 Y0 N0 k! g7 D
        <extension point="org.eclipse.ui.bindings">+ i7 M9 J5 g" F6 W( [0 w3 r& R
                        <key commandId="com.mycom.myitem.commands.sampleCommand"
9 {3 B  P8 u9 z* f/ G' E% ]                                contextId="org.eclipse.ui.contexts.window"
* B' X2 R7 s, L7 d7 \( K1 t                                sequence="M1+6"$ s" ^/ T4 R3 D5 ^8 z1 S( C
                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">- i& t; c  d* p/ C" N1 e8 D
                           </key>
6 P; B2 \  ]0 T& b. s: s           </extension>- M  z- B) q5 r3 K% V
                           : n' k' p5 g) {3 g6 A
        ( c, d- k2 d  b* m1 \* t
</plugin>* F' U# A* H1 [- l* q

, |/ t4 y2 r8 T0 q. ^/ ^2 N
$ y) u: `( P1 V* v3 b& p6 U+ @
上海点团信息科技有限公司,承接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
1 h+ m) e/ ]$ q% [0 {* a5 |! ]...

: H) B/ {" v, q" r) ?8 \8 Q( {这个好像是让菜单显示在工具栏上。重写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二次开发专题模块培训报名开始啦

    我知道了