|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。: Z9 f0 N& M5 q: j
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"?>
' L+ T6 V. x/ S* y0 b# d$ t0 k<?eclipse version="3.4"?>
7 }2 _% T- \9 Y<plUGin>- q' T2 K0 l, k
$ c/ |1 [2 X. ]0 J: p <extension point="org.eclipse.ui.commands">5 h2 |- A; V: {% z* b, w5 D7 Q
; X E- y4 v' M, h' X, U <category name="Sample Category" id="com.mycom.myitem.commands.category" />
4 N ?4 e$ L$ Q0 w+ ] <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"" _7 I6 [) Z0 Y
id="com.mycom.myitem.commands.sampleCommand"/> G1 [# T+ u; j5 _
8 r# q4 y- l; k/ Y" P8 U0 F* Q5 w </extension>0 [4 N. P% T+ n- m/ s# ^8 e& F
" M+ x& o b# s$ R2 F. E
<extension point="org.eclipse.ui.handlers">
1 a) b- j- C, p; b, s! g <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>$ j5 P8 F7 c: @1 i! U
+ l. r3 j. v, L
</extension>
& o. F6 ?$ \- w9 H ~% b0 g% W% u; w" C- C( T" D' |; P
<extension point="org.eclipse.ui.handlers">
$ Y8 s: F. E6 F3 g# [, E4 q + a3 w1 h# i I
<handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">& K- K9 [( X1 W6 N6 ^2 M! s" ~
<activeWhen>
; Q& r; t/ x) c4 C" o+ t/ T5 M <iterate ifEmpty="false">' C1 T0 c/ S7 ]9 _( X6 E/ o9 y
<and>, N' b6 q" d1 T9 ]
<adapt type="com.teamcenter.rac.kernel.TCComponent">
; }# }$ M+ S" w% O <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" />
- {8 v3 Y3 f6 g! F) d8 T F </adapt>
; K2 v5 n% |( a v: D </and>
- C4 [8 G! ~: j0 R. m1 h! Q </iterate>- J% _, T0 W8 A6 `; r# \
</activeWhen>
: ]& Q: F. @' o5 w8 }% V </handler>
- i+ f' c& s0 n0 B! I </extension>- B# k# {: p$ ?
! @! Q. i& M& F <extension point="org.eclipse.ui.bindings">
: w% u1 V1 l z& U" | <key commandId="com.mycom.myitem.commands.sampleCommand"
2 z# h3 f" h+ B- j, O9 N% U contextId="org.eclipse.ui.contexts.window"
9 k) Q9 Z _& ]+ _. t/ k& Q7 x sequence="M1+6"
' S" D/ H* {; G# ], U4 L1 o* q9 |2 l schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
4 v8 d6 w7 G2 |+ O/ X( Z. d </key>
4 F1 \, z% w4 ~8 e& c0 n </extension>
" A. g7 v* u. Y8 q 7 T% x0 Z2 v( l. ~1 l% C
0 P# _& u& Y* y/ o
</plugin>
( ?( {9 [( R4 d v( b/ w, z. y( P- Q* ~
* q9 |; f) E* _7 h+ m" H
|
|