|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。
+ t4 |: n! R0 k& P6 R( O+ P3 cfile:///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"?>5 ~0 W+ y% m! p" n4 R& u# {
<?eclipse version="3.4"?>* G3 T, I) H* u0 [; y
<plUGin>
# `3 i8 W6 E! z2 x. Y3 _( y * Y/ Z' b2 f- K) y
<extension point="org.eclipse.ui.commands">
( o* J5 q8 Z4 X( ^* ^8 H6 ]2 r 0 p0 } g7 x0 D
<category name="Sample Category" id="com.mycom.myitem.commands.category" />: Y- Y0 ~3 Y9 {$ o6 f' ?* A
<command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
6 v, v Q* T# r# n- p1 o id="com.mycom.myitem.commands.sampleCommand"/>2 u& i$ e' |% d3 V5 G0 w
1 A* [: g; A, `' Q/ ]$ M </extension>
" X* y+ L9 I, y2 z! t6 B: u& b( V
<extension point="org.eclipse.ui.handlers"> O5 D/ Z5 c& J0 B4 n
<handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/># \9 M x" y: V
* x3 t0 a( E0 O: J i r
</extension>; W! j5 U! Z$ L/ C! r
1 s) {& W7 h& \3 ]5 X2 h Z7 p; N* }
<extension point="org.eclipse.ui.handlers">& L* W- Y# j @3 F
' {6 z3 N+ b$ d+ X" _4 t <handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">
9 K: ?' i. ~4 c4 r& z5 | <activeWhen>& Q- _+ z! ?! d
<iterate ifEmpty="false">
) ~ d, O: \$ _6 I; d. n <and>
3 D0 g# \! {; e/ X2 Q <adapt type="com.teamcenter.rac.kernel.TCComponent">7 }( V1 X9 Q( P8 r. y
<test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" /> ! ~* M# O3 x0 |6 i( U+ v
</adapt>
3 }) U- G! b, `7 x t k- Z1 x4 D0 B </and>5 v/ J9 ^& Y" f V7 s* I2 C8 R
</iterate>9 s$ ?4 o9 F1 P* d8 m1 ]
</activeWhen>3 O8 ]. w( J- L/ J( W/ ]
</handler>2 f3 b* r+ Y& R+ m2 |- p
</extension>4 s+ V4 ]$ |6 K3 p# B
7 k q$ k1 _1 Y# |5 q <extension point="org.eclipse.ui.bindings">
3 u: M6 G; D. s, p, T <key commandId="com.mycom.myitem.commands.sampleCommand": }6 E# _; W' q0 J3 Y
contextId="org.eclipse.ui.contexts.window"% ^3 D* ]$ M: H
sequence="M1+6"
/ V* s6 z. L" E7 d) I# S schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
5 p$ t9 y8 N& t* b, Q </key>) e+ W# |4 W( v4 T
</extension>
+ r3 n# \. g2 K6 @' T e6 J 9 i9 e+ l# F) C
( L2 H. C Q" q0 C. |2 b</plugin>% d9 Z1 P, o. i9 P. y/ J
' n9 ]: j, J' t& K2 F
2 u# [5 c1 T# y3 ?' Q |
|