查看: 4080|回复: 3

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

 火 [复制链接]

2

主题

34

回帖

350

积分

中级会员

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

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

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

×
  谁有开发过这个override Teamcenter commands 求教。。
$ }. U$ k. [, O+ N" A( @1 sfile:///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"?>
, V! U: ?9 Q$ {/ q2 g$ [( I<?eclipse version="3.4"?>; d7 b7 s1 B, T9 l  A6 @& G
<plUGin>* i" I( m# M) r- ]8 A7 t$ `( L3 ^
                          
2 _7 Q+ J4 t$ N9 ^3 T% l9 ?        <extension point="org.eclipse.ui.commands">% |8 o0 l" n) o. d4 N+ p
          
" f% V/ J. z. R/ ]2 b, G+ S# O# T; J- i0 p           <category name="Sample Category" id="com.mycom.myitem.commands.category" />
' n; L0 U; E7 i8 [           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"- E& @0 b/ a6 _0 b( d1 c
                        id="com.mycom.myitem.commands.sampleCommand"/>8 F* D& `! S2 K; r4 _/ D& z9 q+ d; c
         . k! s3 F$ u8 A- H+ C4 @
   </extension>
# F2 ^0 d6 X& `1 x. D
& K7 S9 N1 Q  d4 P( u! K2 @/ S   <extension point="org.eclipse.ui.handlers">% E6 b/ S' |7 m7 A) L  O
           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>2 Y, g7 j' f5 V
4 Y- f! g) x. F0 Y) \% X0 i
      </extension>3 v8 z& G5 m4 c; n$ \1 m
: W# ]6 }9 P# A0 \1 X6 L
   <extension point="org.eclipse.ui.handlers">/ d* x6 t+ I! q3 x6 e" d3 j
            
1 U) G! j' l) `" C) B) V4 t                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">' Z6 q2 q% F8 v( N: p( O( u0 W* i
                        <activeWhen>
- E" {: f* ^- `, u* H( O                                <iterate ifEmpty="false">
  T: r. z- m9 E6 _0 h                                        <and>
8 P1 r) `2 g4 Z- |  H3 a& e5 l& b: o                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">  K) g' G4 w: h
                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
/ r5 C' |4 P# o0 h9 y                                                </adapt>. \+ [2 M' g) C8 v# X2 }6 M
                                        </and>
7 Q% a1 n1 C; C$ u, y* b( j$ O0 K2 e                                </iterate>
! q; y1 S2 d7 I  b) m( b                        </activeWhen>
8 F1 m. E) y2 u( r8 p4 D                </handler>% v8 e0 ~: j' X' o+ x* t
   </extension>
( L+ L- V+ a" S5 g$ }7 T8 h2 [4 Z) }; L' B/ n
        <extension point="org.eclipse.ui.bindings">  V% }* g" @7 J& u* Z3 z, x- m0 K
                        <key commandId="com.mycom.myitem.commands.sampleCommand"6 K4 [1 k" b& c. X; f; K' N
                                contextId="org.eclipse.ui.contexts.window"* x: W: R; w' y& N1 z
                                sequence="M1+6"$ U. G, S/ C* f" s' M
                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">+ N$ Z  E" J6 l4 Z0 q) b/ d- B
                           </key>
7 u0 t- i' H/ f! t7 c           </extension>
$ A; }& {6 j  [                          
/ k2 ?6 l" u9 u        ( ?/ C! Q! P$ b# Z! l
</plugin>
, y+ C: F0 K9 B
; L) k7 D+ c& Z3 W0 Z( ?! o2 h" w6 U8 t3 D5 o! 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
  ]6 Y, W/ q+ |7 c0 P) {% J...

/ k5 {0 }6 }# L2 T+ r) L这个好像是让菜单显示在工具栏上。重写TC中的菜单命令好像跟着那个pdf文档写,好像不能实现。
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复 支持 反对

使用道具 举报

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

本版积分规则

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