|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。! U, a: r" D' H3 R
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"?>
4 @3 ?- I2 b+ @( q<?eclipse version="3.4"?>
- m7 O' z% O) F O2 x9 X<plUGin>
% y, u& K2 |7 c
3 t7 P4 x4 m- F <extension point="org.eclipse.ui.commands">
( ~% k: p( F m' g8 @ & v6 P# @& y0 k9 }4 c2 c9 @4 [: |7 E
<category name="Sample Category" id="com.mycom.myitem.commands.category" />
" p- ~; o) I* m3 P& h2 s8 @, H0 Y <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"8 s+ U9 }+ q# X, j
id="com.mycom.myitem.commands.sampleCommand"/>
" ^" u: D W/ @% i& ~7 Z# C& Z 0 W5 e0 w: L7 s' B# j) S
</extension>/ k7 p) q) }6 p- y( s* y5 R
7 d6 N: ?; E; ]5 ?
<extension point="org.eclipse.ui.handlers">5 G) u% h- N3 r+ a" e# j* s1 H$ {. `( H
<handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
6 T+ U" U, u8 M. Q! n# `; B, ^! p4 p% c% P% d2 o
</extension>
# g! m1 ^; R# H$ |( h% U6 a: v) C. C
<extension point="org.eclipse.ui.handlers">
3 U( }# {; P7 u# }! `# Y3 F+ l 0 l e9 R& v- E
<handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">7 g# K$ K4 f; a; x# Q' X
<activeWhen>
! {6 O0 U% s0 H0 N* k <iterate ifEmpty="false">7 N# C& d; H# b& ]' H* }
<and>4 Z6 m- Y2 k* Y7 V
<adapt type="com.teamcenter.rac.kernel.TCComponent">3 o& j1 |' l* O8 B4 |: y# G
<test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
, v6 a% D' L3 r </adapt>. `) i1 Y: J4 q) C' Z7 `& S. M8 U
</and>
; p% ]7 e) s9 e1 [- ] </iterate>$ i* S3 I5 y: u: Q7 N
</activeWhen>
) `* U9 J( v3 r7 [- s( n </handler>
1 b% t5 d V6 z </extension>0 E) p( Z* f8 T! q; e4 Z I* W
' U9 h8 H7 U" L( r ]; g. b; V <extension point="org.eclipse.ui.bindings"> `5 t$ G$ j) |* }0 c. Y0 D
<key commandId="com.mycom.myitem.commands.sampleCommand"* m& a# u7 H- F: h4 O
contextId="org.eclipse.ui.contexts.window"
$ S9 A1 l. Y9 c; r sequence="M1+6", h7 ~' G; Z! y& m
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
# l7 q# a% w/ x/ C" C </key>; }: {9 G- w7 R7 v
</extension>3 _, r4 o: P, e% D
4 N* s: P8 y+ C5 T1 y( H
* |5 {+ j8 ]- }7 ?2 G) q) \
</plugin># c O8 `; q/ L) \- i/ p/ }
9 N( ]; {! C1 X' c" @
4 j7 T7 ?+ r" P f6 Y
|
|