|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。
- l0 }8 i; t" P: T- Mfile:///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"?>+ n/ @7 C o+ s( Y- A$ ^, Z
<?eclipse version="3.4"?>. T# U7 ^2 S$ r h: s9 B
<plUGin>
6 ]; c- d5 J2 H% A. g+ i& z
) G0 Z, O& I$ o6 V" T4 A; K4 W <extension point="org.eclipse.ui.commands">, }8 p2 H7 }7 H6 L4 U6 `" j
Y- B' P: Y. C. a1 N5 O! q <category name="Sample Category" id="com.mycom.myitem.commands.category" />* ^6 l: ^' m% J6 e* F t
<command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
/ _" `( l z9 B4 f7 H9 [ id="com.mycom.myitem.commands.sampleCommand"/>
$ j u/ Q2 r# L% h% Z) j$ Q; X
7 G- Z! G' n g$ v( j. @$ {& O </extension>
: A1 V5 i" \( L4 n8 A" ]4 b
: `1 u. }: C8 u! K <extension point="org.eclipse.ui.handlers">
8 Y9 N% V. Q5 E" Q <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
' `8 _9 e9 \- h `) K9 w9 n; J1 y0 H0 U* u1 r9 w
</extension>
: [1 c% j; F4 Y3 k; ^, B
& ~7 ~. q: y" I. w <extension point="org.eclipse.ui.handlers">; r- }6 `- ?7 a W% ]/ T/ s! o
( m; s1 w% M+ _) o, f* I* B
<handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">' y: Z" k/ j" ?- L b8 X1 [# G
<activeWhen>& o# ]3 m' u/ m6 A7 T9 n* r
<iterate ifEmpty="false">, j: D5 F% R% D3 B
<and>
$ O0 o0 Z9 \8 I/ Q# v <adapt type="com.teamcenter.rac.kernel.TCComponent">
$ p1 y# D8 H, q( o8 x h' m <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" /> * S: }0 p' ` z; g+ _/ p. S% i0 j
</adapt>& X# ]# \' c- X( g+ ~
</and>& [$ ?$ k# `, G' v" k
</iterate>' \% S+ g2 @/ Q! @# `. K
</activeWhen>4 L" n3 I3 N1 Z2 v5 \. j
</handler>
f$ D" U/ `% g3 P+ w0 R </extension>$ w1 H3 k/ y( C5 f2 E4 K, \, [
3 |- N8 H1 i: e' h; w, I7 V
<extension point="org.eclipse.ui.bindings">
! @) l8 G" x0 j <key commandId="com.mycom.myitem.commands.sampleCommand"
/ F2 c2 K' H# H0 Q( V4 o contextId="org.eclipse.ui.contexts.window"
$ q6 ^1 L5 h2 N; B3 }" l( y | sequence="M1+6"
8 k5 C* E* l- C schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">6 j* X3 i8 _& O& I3 w2 t, e {
</key>
: V/ N) u3 F+ z2 e9 F' f </extension>
9 R. z7 r: Z! r, D: G( F" B - ^9 ]! G1 z7 V
( g- f7 D2 b: X7 A4 V& S) w</plugin> B8 p& {7 `" c& J3 S; g+ a
1 K E) B7 L# M' e$ B
" u6 q# u" W8 A9 Z; ? |
|