|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。& R4 w. @* `/ u( ~. a; y% t
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"?>9 E" A$ F, I) n
<?eclipse version="3.4"?>
* G' ?3 ~* Y- L# O<plUGin>( [0 |8 e4 a% Z; T
1 i- U0 N) D" S8 w( ]5 Z3 |, R% b2 Z <extension point="org.eclipse.ui.commands">; m. Y0 c, t8 }- y
" d4 N; M) W7 \2 D9 u3 X <category name="Sample Category" id="com.mycom.myitem.commands.category" />5 E; k. `2 N4 r7 ~0 R+ |, B, J
<command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
) U8 P. g, A; e; m4 N& } id="com.mycom.myitem.commands.sampleCommand"/>& e8 k( T2 k, [! F
/ K2 p2 k* x) q5 _: ` M
</extension>) I: j1 p9 q [% B7 w6 }0 i
" ~ p6 z6 ~- B1 ^2 S
<extension point="org.eclipse.ui.handlers">; {. N' H" {1 z, z( [
<handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
[, g9 Q4 Y& X$ f6 _
0 [4 i" {- N: H# ~; j. M# d </extension>! j [" P' e4 @" M. p0 S; {8 @
: F* h0 L! ?3 c1 V8 S u
<extension point="org.eclipse.ui.handlers">2 g1 d6 T9 ~+ N7 q6 G- M8 \
, \/ C8 \" I4 n- j( I
<handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">, L" d% w& z- A& Z3 O
<activeWhen>
8 f$ z' h8 B6 ?' k( z! [ <iterate ifEmpty="false">3 A0 b0 S- x9 [
<and>
& @9 ]5 x) O) C% X* B: s: H <adapt type="com.teamcenter.rac.kernel.TCComponent"># f( W X) i( ?6 T
<test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
) |/ ^( q0 Q8 o; m </adapt>
; t3 y; z( _. S4 y3 N </and>
2 j2 e! ^" Y6 z4 h( R </iterate>6 q, v7 t( x K3 e9 w( j: p
</activeWhen>7 H& d1 B: ]; i N E4 Y$ W
</handler>. m- H5 p: n P/ T9 L' e# \: e
</extension>
: L5 d$ ~: I9 ]0 b3 T0 Z
+ D0 p" ~8 a5 Q; s3 Q& o0 a! {& G <extension point="org.eclipse.ui.bindings">9 H2 h! U$ e, Y3 W \
<key commandId="com.mycom.myitem.commands.sampleCommand"
, t" n* g& y1 x contextId="org.eclipse.ui.contexts.window"
1 D. P: v, T6 W B5 v/ x* \ sequence="M1+6"
k6 R/ r1 E+ F6 F( I; ] schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
$ T) [! P1 ]! H* p </key>
. e4 u0 V: C, e9 q( O+ D1 p# _. m3 M </extension>
% h! P7 Z' g E+ N' n 2 Y2 w0 b& E0 c* Y Z" Z% \
. ^$ Q* N- u2 w
</plugin>, o/ M5 v% o9 T( V
! h4 D/ c0 c: j$ y
/ G) O* A ^0 w: I |
|