|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。
* j! A" V' M: M& vfile:///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"?>9 k( D: P: f J' }9 A1 g8 n. `
<?eclipse version="3.4"?>
) a, a# h! p0 |& N8 h<plUGin>3 j6 A1 D: C# u' [+ H" i
* ^1 F; c5 d9 h) d* W% C
<extension point="org.eclipse.ui.commands">. @/ s7 w& _$ d* r# W
N6 i7 P5 T0 X% S$ j
<category name="Sample Category" id="com.mycom.myitem.commands.category" />1 D$ F1 e8 M4 d+ O6 w
<command name="Sample Command" categoryId="com.mycom.myitem.commands.category"1 ^4 F& _2 }( p- m8 G8 A
id="com.mycom.myitem.commands.sampleCommand"/>
3 J" H# t" T3 ^' w ' R, Q! g; t& V
</extension>$ t- W7 I7 U, J; X3 F1 G ~
# x$ M6 Y8 A) e! n+ ]: {8 v) _! _# u
<extension point="org.eclipse.ui.handlers">
" c& e& F+ F8 W2 N5 x <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>4 G6 q5 B$ [, h! \ ^! M
/ ~) G3 | l, o7 G1 J9 C
</extension>" V) q( I( ~: x3 D; O$ m$ N6 A" t
& S- Y+ f: @" O3 v% ~* z. c <extension point="org.eclipse.ui.handlers">
: e% z, n/ w3 ]1 p' k; `2 H4 h
; a( U, ?1 F2 d <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">, m: I9 c2 ?, _5 D. q
<activeWhen>; B( }' @. y& ~8 W) y
<iterate ifEmpty="false">
1 j8 v) P3 v" _. U <and>1 z0 B* c% K2 Y( m$ O, y
<adapt type="com.teamcenter.rac.kernel.TCComponent">
# [6 p: a& I9 @; } <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
# B8 d" }" `4 o </adapt>
& {. \* C7 X; q3 b' y </and>/ [) B h# o, J, Z) T S
</iterate>3 |$ |- o8 T6 s3 R7 o2 o
</activeWhen>+ {$ x2 D+ {6 O- Y7 a/ N
</handler>, \; }/ p+ c) P( r% [* f3 O
</extension>
, _. s* V% `, t* u8 C4 F* d1 s+ |2 n$ h( S
<extension point="org.eclipse.ui.bindings">
8 {" z, z- e% j; x O3 I <key commandId="com.mycom.myitem.commands.sampleCommand"
( ]. N3 t$ V. i- n' C, Z( z; C0 B contextId="org.eclipse.ui.contexts.window"
- d' m$ P6 d6 J% F( P, J- ~ sequence="M1+6"3 O. m S7 U ^ \, f/ q/ g$ ~
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"> s8 Q7 b( D& Z7 {9 v; i
</key> E+ b5 Y, h- A
</extension>
3 U( K! T$ h% E n, S3 D' d) B 8 m8 F4 ]# y/ `, g; L( ?
3 j, }& K! u& _4 a* N0 g# O+ @
</plugin>4 B5 z e% H( R6 ?) G; r) [
. ^8 H, g, k& E" l/ f4 a1 w. T
- S B5 l) i5 y8 D |
|