|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。 q q8 e" U6 H5 p( u* K
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"?>% O0 i7 \* u% f' q
<?eclipse version="3.4"?>. e$ _7 `0 }3 M5 t4 @$ A* Q
<plUGin>
4 Q/ v) H, F' e3 P: \& H1 L# b) `6 d q + D& _6 ]) V+ n. F8 l! t2 s
<extension point="org.eclipse.ui.commands">% W& s h# r0 S
8 A% a6 [. r) s, R$ n' Y% Y: @
<category name="Sample Category" id="com.mycom.myitem.commands.category" />. j! e/ b0 ], M+ ]" I2 R
<command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
3 Y& E4 }0 v1 g7 _! ` id="com.mycom.myitem.commands.sampleCommand"/>% o3 ^/ W. e8 X1 i6 j, l
2 a+ _7 N- w" M
</extension>, H2 C4 U9 p% X F
* y3 U- m/ Z$ o$ W7 v <extension point="org.eclipse.ui.handlers">' G N( C' b$ u
<handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>3 ]+ q6 G; o \* |; [; z
0 y2 F, [( ?) \; Z& G# } </extension>
8 T) r; H( u0 q0 O7 S
1 e% q9 y" A5 `) J6 d: ` _% E8 G$ |5 s <extension point="org.eclipse.ui.handlers">- Z2 _" }, `" C5 B- W
! n& S6 v. Z: ^4 Z5 k' M B
<handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler"> D+ i; y/ U& {# l( v, e( O
<activeWhen>* w2 a# C- a8 G) r$ I' G
<iterate ifEmpty="false">4 D2 @) T0 f4 J; p( M
<and>) R$ d- f2 H6 K' w& p
<adapt type="com.teamcenter.rac.kernel.TCComponent">6 H3 w9 F, L" f, B
<test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
5 a4 U) [/ x) O& J% ~ </adapt>' n9 D( X. e! |& D) i, d
</and>2 _& x9 ~8 @' f/ e- m l
</iterate>8 }1 k- ~/ Q& R3 ~% j
</activeWhen>" | c- N- B' S
</handler>
% Q w8 t' ~2 W4 s% i- V </extension>
6 W; T4 |- f2 V( K0 J0 a1 m4 @6 O( E6 V$ p- I7 C8 N$ O3 d1 [
<extension point="org.eclipse.ui.bindings">
8 X" n$ G, g9 w& n% d# Y <key commandId="com.mycom.myitem.commands.sampleCommand"
1 R8 }/ t+ H' u& ?6 R& @2 } contextId="org.eclipse.ui.contexts.window"* E8 x1 V, H. Z5 f- n5 D3 c' R
sequence="M1+6"2 a- a/ ?' _$ n6 }$ ?4 W; i, C
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
$ w1 T9 e; ]! z$ J3 }" ~- H& n </key>
. w" _: P. l( @1 \+ B7 |4 L </extension>
3 Z+ k$ M* h" ~" i1 [2 X 6 c# p Y4 U5 |* T J
0 n) n" T0 y; L% }7 \7 r9 @</plugin>
, e5 Z7 l# r: D" M
' W/ v. h) \8 z. u$ r; |4 `& m. A6 J/ O& E
|
|