PLM之家PLMHome-国产软件践行者

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

  [复制链接]

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

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

chris 楼主

2017-11-2 16:23:56

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

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

x
  谁有开发过这个override Teamcenter commands 求教。。
+ ]3 ~, t+ u4 K6 e2 E) w: Xfile:///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"?>
0 F- I7 [8 d8 I% s9 s8 E) `<?eclipse version="3.4"?>6 H7 B! G' {, q2 D9 X. E
<plUGin>
) H" x. V2 e* Y% g* A) D                          
- b5 U% Z( `/ Y" B( C: m+ D        <extension point="org.eclipse.ui.commands">' v( a! `0 V# h: N) l: M) E. M
          % A# W- l0 h: ]# R! j
           <category name="Sample Category" id="com.mycom.myitem.commands.category" />! t5 O* s: c5 U  @
           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"# Y1 c0 G1 N1 a; Z3 t; A$ M
                        id="com.mycom.myitem.commands.sampleCommand"/>
; R5 i+ X/ p; _* A         
' f* V& n+ z  B7 P. V   </extension>
6 V, S( ?4 K) R
8 o1 q: h) I6 I; {   <extension point="org.eclipse.ui.handlers">
* |8 _3 [; z; K8 b- J+ w           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>! ^# s! m. ~1 d, v6 g+ B! H

+ r. {% M+ ~  E9 n      </extension>2 w# x! W8 w. G- U- q6 l

7 c* o9 b9 B: Z   <extension point="org.eclipse.ui.handlers">6 u, S8 I- F* E% k
            
# n" z% N% P+ r) \; V6 m, n. h- k                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">& E& \6 D; u7 ~  B2 p, D
                        <activeWhen>
8 N0 x9 x% ^6 M, T' T                                <iterate ifEmpty="false">2 _* Q! U3 W' U' j' |
                                        <and>1 A: m; F) k' e' y1 j7 n, b7 ]
                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">+ r" E/ f& f5 ~; J+ w
                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
* d" N+ v' ?# ?  `                                                </adapt>
9 `& @0 H5 _- M. D, C$ s2 o7 r                                        </and>
& h8 i& A: S( X  ^& |$ X7 I; a7 V                                </iterate>% g8 M4 P# |/ N  F3 @% w
                        </activeWhen>1 ?5 R/ O$ |% b8 O0 y# [) R' a) R
                </handler>4 u: j0 P4 a7 c& H
   </extension>1 q9 q* }4 o$ s4 `4 e1 u% u

2 @! X5 S' u1 l1 B( @        <extension point="org.eclipse.ui.bindings">4 e2 f  A9 m+ s  h. D3 ^
                        <key commandId="com.mycom.myitem.commands.sampleCommand"
% u" \0 q! o. b; t" e/ W8 A" V: ?                                contextId="org.eclipse.ui.contexts.window"
; Y3 _+ g# j2 N' i$ ?& \# m                                sequence="M1+6"
& M6 U9 q/ }  Q, I3 |1 l                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
" X$ }( ]( O% p3 k7 `" a) U, y                           </key>& s7 T/ v" M# @# q9 ]7 p
           </extension>
% t& |, G# |: l                           2 @; _& b& Y+ Z' l
        3 _; ?- E, _, ?, l0 y" Q; p
</plugin>
4 J: X4 U$ j1 O; n' L- m9 r% ~, f( _! m6 j$ U8 B; j

7 W) E, H3 z9 q% m0 K
上海点团信息科技有限公司,承接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# M6 \  e" w, t$ J
...

" c2 H' Y5 h8 G& [4 ^这个好像是让菜单显示在工具栏上。重写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二次开发专题模块培训报名开始啦

    我知道了