|  | 
 
| 
谁有开发过这个override Teamcenter commands 求教。。% n* Y$ Y1 I$ U# A9 {6 V
x
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!您需要 登录 才可以下载或查看,没有账号?注册 
  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"?>
 - x0 j, [7 N6 `  ^$ w<?eclipse version="3.4"?>
 3 ]: b0 C+ o  Y4 Z( e  n8 I+ c<plUGin>
 7 s1 A" }) e' @7 I8 \
 F  B: Q, n3 ?6 t( L/ p! B        <extension point="org.eclipse.ui.commands">
 6 N. j8 M+ {+ b: m4 d& H
 0 X) s) D& ~- ~( M( H' t           <category name="Sample Category" id="com.mycom.myitem.commands.category" />
 ! {" U( c  g& G$ V           <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"& R1 l# W1 A: r0 ]0 y% I: m
 id="com.mycom.myitem.commands.sampleCommand"/>
 0 j2 l1 m( a8 U  Y9 N5 ^) Z9 ~
 # }$ f; P- _/ d+ O2 [# K! w   </extension>
 : w5 ]/ x* a( M
 3 ]* K! x/ H" E0 T+ G! Y   <extension point="org.eclipse.ui.handlers"># L: v% H% ?  [$ t3 F' s
 <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
 $ _, J( {! @: D9 U0 _+ q0 [) k( A0 x7 h) o4 M0 d) W1 ?% I
 </extension>
 4 ?& g  T3 G( O: B( z  J( y  z
 + r) N3 K' w; s9 g) S+ q- T( ?" V   <extension point="org.eclipse.ui.handlers">: n: O9 q" ^, y: c% P! ?- j
 ' [- ?, ]; @% \7 x; m! ]
 <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">6 E4 c' d  t" J/ T, u
 <activeWhen>- f! a1 Y: v5 Y9 c
 <iterate ifEmpty="false">6 {3 n+ K3 |  L
 <and>% S- p: l! x$ o8 Z9 n  @! \' v
 <adapt type="com.teamcenter.rac.kernel.TCComponent">3 N$ l% X8 R5 `/ L
 <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
 . H( F8 w9 N6 l; b2 f5 _. H; U                                                </adapt>5 ]1 o* d# y& P0 R: K2 @" T
 </and>2 V' A% {+ o2 o$ e# A
 </iterate>
 * C. B8 e& }, z' d% f" }0 F7 Y# e6 ?                        </activeWhen>
 , a5 ?' d, c8 D/ [/ b/ F                </handler>/ Q: \1 R$ V9 J; l
 </extension>$ l: h6 a  I" ~8 R& I- x* X
 
 " C) @& q8 s9 S# k: ]( j9 z        <extension point="org.eclipse.ui.bindings">
 ! N  U& Y& t( ^                        <key commandId="com.mycom.myitem.commands.sampleCommand"
 ; H6 W9 p) U* V- E) p4 g& h                                contextId="org.eclipse.ui.contexts.window"- p  d1 d5 R5 V) ~; w4 R7 S
 sequence="M1+6"
 # Q$ m; \1 y0 I2 \9 C. p% p                                schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
 ! H! S7 E9 H2 O                           </key>
 1 V1 U! ?  }' _8 p* j           </extension>6 m' k, A' i( N( K( w- j
 0 Z7 g' p3 ^7 A) x' g0 A, [
 
 ) z3 z7 z* E" i9 X</plugin>
 " m5 T, C/ Q2 x3 C; m" n
 ) K6 |" y6 A  `" J* v/ I( }! Y/ Y8 e8 Q  T$ [. U8 Q" Y+ @
 
 | 
 |