查看: 4004|回复: 3

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

 火 [复制链接]

2

主题

34

回帖

350

积分

中级会员

积分
350
发表于 2017-11-2 16:23:56 | 显示全部楼层 |阅读模式

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

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

×
  谁有开发过这个override Teamcenter commands 求教。。
. i1 z' Z3 ^8 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"?>
4 s! r4 l" m8 s5 |. U<?eclipse version="3.4"?>. |( a' Z& C9 ]7 q7 s
<plUGin>$ v, z* A% L1 I  l. p  p& S# {7 l
                           8 B# A+ ~; I  [# j( N: Q" Y
        <extension point="org.eclipse.ui.commands">; B( q; ]/ w2 u8 J  D, |5 \
          7 V! I$ i0 _4 _; i! z. w: r
           <category name="Sample Category" id="com.mycom.myitem.commands.category" /># |: Z9 Y4 q, m; J* `3 ?' u
           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
% w! ~0 R  `% I$ `                        id="com.mycom.myitem.commands.sampleCommand"/>
$ p7 Y/ k/ T4 @9 l  [         
" |$ F( a; y! x   </extension>6 `, I9 a5 f: @5 k% c
2 a1 l1 D1 z! `$ V& D$ d
   <extension point="org.eclipse.ui.handlers">
: W/ {5 M& Y9 {9 X& ?) l4 Z           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
& h  z1 v0 N) D+ R) L# a) K7 q+ z8 _% Y( \2 [  U0 ^; l
      </extension>9 G( A  W3 n9 L! A9 ?0 Y
. o5 K6 Z* l7 S0 I* h& ?
   <extension point="org.eclipse.ui.handlers">' H  |) H# z+ B/ W7 e
            
+ |, K" b) J' o+ s                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">; z  i; `: u' p$ E3 v3 [0 `
                        <activeWhen>" ~1 C. f% G: x4 Z, D/ o
                                <iterate ifEmpty="false">' @8 K7 u1 x5 z- P+ }: S
                                        <and>. J0 ?, ]6 l( C2 x& b8 S9 `
                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">
- j3 R# O/ b: [/ Y$ t; g5 g$ l                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
" r4 z$ B/ v! ?, @                                                </adapt>
, @& l/ e1 h- \/ V4 D3 {                                        </and># j# j( y6 n5 L: ]. F5 t" J( }
                                </iterate>
( @4 `! w- Z9 {8 O( Y) h                        </activeWhen>
, ?$ m; N# z8 u3 Z7 H. l$ c3 Z                </handler>
0 r" Z4 n5 v; [+ C0 j# F   </extension>
  s: F8 S7 A; E, N3 ^3 T  J( i: j& |
        <extension point="org.eclipse.ui.bindings">
4 M" I: i& b' O: M% ]) G! |8 l                        <key commandId="com.mycom.myitem.commands.sampleCommand"
) E( f0 i& Q' f  I1 E                                contextId="org.eclipse.ui.contexts.window"$ z" t4 H& |3 w. q' I3 H% u: v
                                sequence="M1+6"  t' _" s. i9 T5 R( N8 k
                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"># |  Z/ i$ U5 ^' K1 L  o
                           </key>2 v  s! r: z4 N% j9 z5 T6 E
           </extension>7 ]- O! f6 P6 q9 d7 b; |7 L
                          
4 s& c' p7 G5 y4 O6 N1 n        - ^* h; e9 w$ a
</plugin>
( W0 s: e$ R; @4 [( x. I0 f- a  ?
" q" _$ h: h! N* s& g7 U
7 |0 V3 w" v8 l! X
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复

使用道具 举报

1

主题

12

回帖

55

积分

注册会员

积分
55
发表于 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.doteam.tech
回复 支持 反对

使用道具 举报

2

主题

34

回帖

350

积分

中级会员

积分
350
 楼主| 发表于 2018-11-27 09:20:52 | 显示全部楼层
pzc1350 发表于 2018-11-26 21:12% }4 a, N- s( y2 a/ ?
...
, g/ [: C2 Z# O3 P0 R
这个好像是让菜单显示在工具栏上。重写TC中的菜单命令好像跟着那个pdf文档写,好像不能实现。
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复 支持 反对

使用道具 举报

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

本版积分规则

在本版发帖
关注公众号
QQ客服返回顶部