查看: 4191|回复: 3

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

 火 [复制链接]

2

主题

34

回帖

350

积分

中级会员

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

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

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

×
  谁有开发过这个override Teamcenter commands 求教。。
% o- j  t' H8 M3 b& ?# Pfile:///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"?>
5 ]2 c! S% v. d$ d( ?<?eclipse version="3.4"?>
9 L4 c0 k+ p9 `( M<plUGin>5 W. J# x# Q" V/ ]3 |1 a3 ~
                          
; J0 Q+ f5 Y( z' X; L        <extension point="org.eclipse.ui.commands">
4 n, A1 Y' l/ c5 n0 a  O. g          1 A! x+ h2 e1 u. w# v
           <category name="Sample Category" id="com.mycom.myitem.commands.category" />
0 o, @& ^' V! }3 ?: v  E; ~           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
, L) H# ^8 Z4 M: j                        id="com.mycom.myitem.commands.sampleCommand"/>/ L; z1 p  T- U- d% m
         
( N* B# Z6 [7 r/ w! Q7 U   </extension>
* u* v5 O9 G6 [6 d5 Q% x/ w( Y2 h0 ~
   <extension point="org.eclipse.ui.handlers">8 T+ r2 a( d9 g4 m" O# I# y1 w
           <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>2 y% j( ?8 Q, d
" @3 l6 ~) N- R& I0 w- s
      </extension>
% W% A3 m( q5 p8 p& X8 [( a2 \* ?& S' i3 Q- W6 X0 Q/ O: w
   <extension point="org.eclipse.ui.handlers">
. [' [5 D) m0 [  T" \4 C/ h            4 `2 y7 l+ ]: u5 V
                <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">
) ]# D3 u" X& d) m4 X9 x                        <activeWhen>/ a6 b1 W5 [% ]+ C: |5 g$ _
                                <iterate ifEmpty="false">* w0 ~6 F, q' k; V0 ^  X
                                        <and>
* z* ^2 W6 j) ^& N. j  f7 j                                                <adapt type="com.teamcenter.rac.kernel.TCComponent">$ d9 d7 ~  y" f, d
                                                        <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
2 L4 }# Y3 o  m. n! G/ S, U                                                </adapt>7 p) W0 E8 L) E4 o3 o
                                        </and>
8 G2 B, ~4 }% \5 w                                </iterate>
# d( z- f" }% p- V0 ~' f/ W                        </activeWhen>
2 @0 u4 k" Z+ U! i$ ~: Q                </handler>" K5 M. ~* P+ s! k+ Z5 j- U# p8 A! l
   </extension>8 ~+ f6 e# m5 s  ?/ M* u- a

0 \8 I% v' d6 s2 A        <extension point="org.eclipse.ui.bindings">& }2 D# _( ]  D0 n$ J( x7 s1 b
                        <key commandId="com.mycom.myitem.commands.sampleCommand"& w! [( G: f! E! t* F/ {
                                contextId="org.eclipse.ui.contexts.window"
- Y- `7 b- V# t' W) `8 c* j8 e                                sequence="M1+6"5 S" `  H  A& C& Z* o! a" T
                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
0 D5 ~3 S) k" W4 t8 l! `3 t                           </key>
- ]1 a# ]) }: t$ s+ W( O           </extension>
$ U  h, E, e* q/ b+ A, X$ i                          
" Z3 Y% x; W0 Z% j; A& _6 d( x+ L: S        2 x7 f2 [, ]+ J% `
</plugin>4 c( G* A+ h, k! l

- A4 M" T. W& Z* a4 L# L. O) [+ R; r; H& y+ Q8 _/ {
上海点团信息科技有限公司,承接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; G! X4 C, D. D3 b/ U8 e
...

7 N# k6 l( x: J0 K8 |8 u3 ]/ j这个好像是让菜单显示在工具栏上。重写TC中的菜单命令好像跟着那个pdf文档写,好像不能实现。
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复 支持 反对

使用道具 举报

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

本版积分规则

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