查看: 4137|回复: 3

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

 火 [复制链接]

2

主题

34

回帖

350

积分

中级会员

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

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

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

×
  谁有开发过这个override Teamcenter commands 求教。。
% ]) }, g/ Y- J7 V* p, N5 B- Qfile:///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 p& @, g$ n1 p0 B8 T( N: D
<?eclipse version="3.4"?>
! f" }- E% h6 b. `( ?<plUGin>
0 o; F/ P# J7 `6 J  X                           ) l7 }& t9 R# G! f# Y0 n
        <extension point="org.eclipse.ui.commands">
- P1 O' B$ I* M' e          
, F0 ~3 t1 f4 @7 e( S           <category name="Sample Category" id="com.mycom.myitem.commands.category" />: K/ B+ w6 R2 @9 F5 z
           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"4 l% o7 t" C9 W, U5 n3 l& t$ k
                        id="com.mycom.myitem.commands.sampleCommand"/>: ]- P! q: |5 A6 a
         
6 u2 m3 R# w9 l  Z8 r* `: I. h6 S   </extension>* ?3 E) Y, E" N; r: {  _5 \3 n* k1 J

! t$ x; R: W3 S9 K7 P/ O+ U   <extension point="org.eclipse.ui.handlers">; ^6 t7 Z% x9 R% v
           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
9 A7 o' @8 N- I
& ]9 @, l8 g/ \, b; \$ R      </extension>; C$ p% s9 u5 B9 ^. p5 A6 T
+ l1 A1 e" X6 z8 \- D0 ^
   <extension point="org.eclipse.ui.handlers">: r  X( m( Z: v4 S2 p* z* F
            + [2 ]( V' o) j6 Y
                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">0 p3 {. d1 @' S( }- t0 ?
                        <activeWhen>) @6 ~+ K% M% n5 Y2 |
                                <iterate ifEmpty="false">) s$ e% _& H4 }( I
                                        <and>; T. x9 g" ^0 q+ `
                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">0 }" F3 m" ~( K* B) O% B  @
                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" /> 4 \  N$ |+ l' k: t7 G2 a0 S' P
                                                </adapt>2 m' h" H9 v3 |( i8 {" V. C' \6 E
                                        </and>1 J# |! T; G, J
                                </iterate>: p1 ?, e$ |, h! ]" J" `  [
                        </activeWhen>! w: {  A  f9 b0 n7 [' ]
                </handler>8 \$ z. H) P5 b: R" `
   </extension>
- e; I8 H% V- n8 {
/ Q) X5 x0 U( F( U6 n        <extension point="org.eclipse.ui.bindings">
5 r: V# H, R" k+ ~( o! B- a& w                        <key commandId="com.mycom.myitem.commands.sampleCommand"8 X7 p9 V% a! @
                                contextId="org.eclipse.ui.contexts.window"
) s2 r8 j5 b/ W4 m+ O                                sequence="M1+6"1 u# T/ m& S/ w1 m$ A2 H
                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">! ~+ u! y. r0 H9 T) C2 }& D$ H9 s
                           </key>! L, U& l4 Q, N8 L8 K  }5 K
           </extension>3 q$ N% ~  G6 C% F: Z7 T8 L0 _
                          
+ s3 L: I$ Y8 X4 L       
$ R  Z  H3 T  W5 Y! v6 `</plugin># g3 X& B: g) u: ~4 Y; M, K
+ E' j  F- I- v6 X5 {1 {6 e* F2 u
% {& y: d7 C9 f2 J/ |% O
上海点团信息科技有限公司,承接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:129 h4 t5 @/ a8 |2 c9 g6 M
...
3 P: c. I" Y9 j& T4 \- U9 E
这个好像是让菜单显示在工具栏上。重写TC中的菜单命令好像跟着那个pdf文档写,好像不能实现。
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复 支持 反对

使用道具 举报

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

本版积分规则

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