|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。
! X3 a( E8 r2 S& |: G7 ~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 {: _6 A: z- _4 E+ i% O1 p' c<?eclipse version="3.4"?>
7 L6 n/ b2 r, ?- G" [" p0 ?- u<plUGin>
+ g' {( o' y5 `9 d
% i3 ]" A- y8 n6 M: R/ G/ h <extension point="org.eclipse.ui.commands">( I! c$ s2 t4 |6 [! x6 v& h: Y# m
: x$ [+ Y2 b5 P$ h6 s3 L! w! F% r" h7 N
<category name="Sample Category" id="com.mycom.myitem.commands.category" />
. m7 ^9 B6 t# G9 _9 h7 u" t <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"! o1 R# k6 w9 @. m
id="com.mycom.myitem.commands.sampleCommand"/>
4 n2 R. |+ e F/ H4 E* M 9 J' l. B) j8 U* n- j9 o+ E; x) m
</extension>2 ]5 a3 V [4 z: X4 o( L) t
# L+ _, L4 b+ t7 b6 Q1 U+ T& q <extension point="org.eclipse.ui.handlers">
9 N! Z6 ?1 Y" L* p0 _) R <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>- v2 y! S- K; q/ M4 {9 J
/ A' R0 j( `, Q, s. C4 K
</extension>
9 f. a/ \/ N V. D; U
7 w3 F6 k$ z7 X9 j <extension point="org.eclipse.ui.handlers">
9 ?: `1 D4 m, m: U1 U+ s
I7 y6 `$ X* t) i) `1 Z8 { <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">
, P& E$ z1 _0 U$ n8 k/ O1 B# n N <activeWhen>
& v# c6 N% g% G4 V- P <iterate ifEmpty="false">
9 ]; A+ ?& {: L- y1 i0 k <and>$ S; l/ m' X! l. ^/ ^& Q
<adapt type="com.teamcenter.rac.kernel.TCComponent">
! B3 e; Y- Z3 I <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" /> ' m# R5 P/ e+ V6 c L
</adapt>
6 j' _$ L3 q, X& c9 y </and>) r) z; f1 n* Z$ d5 n2 f1 ?/ \1 Z
</iterate>
/ h8 h4 O$ g0 N Z( a </activeWhen>
8 Y. [4 M2 l1 k; ^# c% H6 u </handler>
! Y8 u- \; f7 X8 a </extension>1 g* q+ ?8 s1 |" B( _( N
" J$ t4 {2 ^3 F0 c2 g7 v <extension point="org.eclipse.ui.bindings">
" c' |. D+ E$ x; z5 }, o, ] <key commandId="com.mycom.myitem.commands.sampleCommand". F; v3 T5 P! s+ c: S
contextId="org.eclipse.ui.contexts.window"
. N( q2 @* N2 n/ F1 T sequence="M1+6"8 B" [; p" m7 l: Q" C9 F1 U
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">7 s7 \/ O; ?( I+ A& G
</key>2 |: x5 \* J' A' z( P% a/ c- W( {
</extension>
! ]( q. ^2 F. b* C& J1 E6 w T u$ S, a; a x. d7 m
, u% ] f' I8 N3 m* m0 k
</plugin>+ {- \' a: c0 k
3 _4 i1 y9 p5 G3 s* z5 T6 p( s, b; k4 y) _1 J& f" H
|
|