|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。
* T* [0 @4 h) C: ^: a, Cfile:///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"?> o) L. r% W5 y
<?eclipse version="3.4"?>* v0 w( w. p) j- h; |( \7 k
<plUGin>' V0 l4 Q0 d( A
2 u+ T& F4 O) }9 U0 m, W0 ^, P
<extension point="org.eclipse.ui.commands">
7 @/ i/ U% L9 S/ n' T& S$ ~ - N% l1 y6 J2 B; V. V
<category name="Sample Category" id="com.mycom.myitem.commands.category" />+ N) ^& \: A- P( }
<command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
; k" k& E" C+ ~8 I. y id="com.mycom.myitem.commands.sampleCommand"/>1 i5 t3 W5 U/ u
: R O( a5 e0 k4 k% z' e
</extension>
& c2 A9 `! \1 I( j- T. a, I% h& e+ e$ u% L) t1 v, ]8 H
<extension point="org.eclipse.ui.handlers">
0 C) Y/ n& q- A9 t <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
4 V p, X$ o- h, z: g3 }; L9 e$ |, D4 e+ D% e
</extension>
& m Z" j% _6 P2 p2 U5 x {, p- ]( w3 o1 Z
<extension point="org.eclipse.ui.handlers">) @. I- f: r6 G* T
9 @% H* ]) r% U
<handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">
4 [" t! f; I8 m1 r <activeWhen>, S5 `/ R N- I4 J; I8 s
<iterate ifEmpty="false">+ o, z& Q+ U6 s
<and>
% R* t" c$ N) r0 u6 v! ~0 ? <adapt type="com.teamcenter.rac.kernel.TCComponent">0 Z. n- Z- V: E! _: a! T; d, P
<test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
5 {" [+ g% H/ c# H- z l8 B1 k' G3 H </adapt>
) X; Q+ w7 J( a u </and>
* \& X% N) e8 J5 ~ </iterate>
7 z9 A3 F: x9 |# J! f: D+ m# |5 L </activeWhen>. z$ x0 ~0 S' E1 M2 t% p, r
</handler>
" `2 Y( E8 L0 c5 Y </extension>
! Y4 L& A/ @8 O, e# w- e0 s
: P8 r2 J7 k. X! U& I" D6 J <extension point="org.eclipse.ui.bindings">
: _. J% m! d! ^9 \2 s! r% _ <key commandId="com.mycom.myitem.commands.sampleCommand"
, m, u7 [: d7 B' P& n2 y contextId="org.eclipse.ui.contexts.window"* X9 b- y4 q7 ^
sequence="M1+6"
5 I& O8 r" h3 f8 m Y6 u2 ` schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"># |+ j T: ? t7 {+ O- W! p+ l7 \
</key>
- j# y- Z7 s- O& x" W- u3 l$ D </extension>
: ~! @ o, c& Q - S9 z$ ?: x/ E" O, P
/ R0 C) _" w7 ?, P7 |</plugin>5 [4 j# J, D; O; i5 a& Q
! D$ G& K, n0 f5 t* i
8 V) q. j9 F, W0 F& i |
|