|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。4 ?% n8 ?2 t5 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"?>
+ k) F0 ~( P, U# f* H" v4 g! @/ x<?eclipse version="3.4"?>: G1 q! l$ G* V
<plUGin>
4 _+ v/ _0 L, J% r 2 t, ]: ?, Y8 A7 K8 T& D
<extension point="org.eclipse.ui.commands">
7 ?% k% S+ t f7 O
% M! M( L: y& O0 T, N$ R! X6 c <category name="Sample Category" id="com.mycom.myitem.commands.category" />4 h: k0 L0 `" H. `+ O7 z
<command name="Sample Command" categoryId="com.mycom.myitem.commands.category"8 B+ r* A% w _# B3 |
id="com.mycom.myitem.commands.sampleCommand"/>
) h( v: a8 J- _ & @" G2 e3 e, P! J% h
</extension>% e" ]9 k1 q8 N3 t# t. t+ L( c
1 n1 G S' `8 ~2 D3 j: [
<extension point="org.eclipse.ui.handlers">
7 n; K$ s6 Q' g, j; l- C+ y1 \ <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>; }/ G- G! L: C& [
8 X( O8 B& e2 b- @
</extension>6 e4 `; J$ K7 N/ X# w8 {- J" m; D
( J, [, h# i0 e <extension point="org.eclipse.ui.handlers">: w" R8 f- N+ @: w
# y6 j9 c1 l0 f, R& ?1 L3 A
<handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">
9 K3 b0 q: e% ^6 d) ~' Z( y, A <activeWhen>. m6 w \& ^" P. |- L" d
<iterate ifEmpty="false">9 q' [# U! w4 r& a7 }/ r
<and># G; ~* ?6 W' j5 n
<adapt type="com.teamcenter.rac.kernel.TCComponent">
/ w! Q, O2 i9 ]) @, E <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
7 V% z+ |1 E$ r; D# w </adapt>/ j) H. S$ m# o# f
</and>1 i# O6 e+ p0 n9 s4 |& x
</iterate>
: f$ f2 v( i1 u </activeWhen>
) v) J9 i: ?! r9 G5 `& O8 o </handler>1 a2 s) ^" f" Q2 A
</extension>
" ^2 M, @2 y) {. G& D8 U4 `0 z' O0 N: R4 x2 S6 }
<extension point="org.eclipse.ui.bindings">* F7 n% ]: i% c( @; I; l
<key commandId="com.mycom.myitem.commands.sampleCommand"6 E8 E% p! _8 x/ [
contextId="org.eclipse.ui.contexts.window"
6 o4 T# a$ n* c$ o; Q+ V5 W sequence="M1+6"; \& V; x, M( _3 e
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
1 l' }% _" I5 j/ T </key> }. z4 }. ]% a- Q/ z% O
</extension>! c0 r( P# U+ I4 w. n5 B
7 w7 ?# P8 @" ^( ~7 }3 k
& G3 V0 d- j" \ K7 E' p</plugin>
1 K! w; z' v# Z: K
" W# B. p+ u1 y% t i0 {$ ]2 W. M5 H9 n9 L5 k2 n1 ]6 b1 R
|
|