|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。
6 c4 D7 g) l) Y6 A1 K! ~8 }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"?>3 L3 y" C, G* L5 \- F( W) [" U3 A
<?eclipse version="3.4"?>' V0 c* @# R0 h) a4 @$ \4 b
<plUGin>3 m0 E3 F, I) K0 \5 ^
8 g% J+ O) [# { L; z' `
<extension point="org.eclipse.ui.commands">
9 R; y5 ], l* B# T4 x ! g9 c& c/ g j" ~' K9 ]
<category name="Sample Category" id="com.mycom.myitem.commands.category" />
& Y6 H, W+ R& n/ r8 D9 d <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"+ ?& x X+ X7 G+ r
id="com.mycom.myitem.commands.sampleCommand"/>1 b- W, e# ~6 |- t! ~
, o1 x" _; P1 p) J: E5 C# x, I9 _
</extension>! n5 x/ ?" D- b8 W, U {7 t
4 y1 U, B4 c: E <extension point="org.eclipse.ui.handlers">
8 z1 D7 _. b8 _' B' c* o <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
4 E* j- v. @' t
& m$ V$ J7 K# n; z/ m </extension>
5 l& n3 L7 G! ~
3 F& G1 C u0 X <extension point="org.eclipse.ui.handlers">
( v9 g5 h' [ k2 ?9 l2 g ) m" G/ _$ @# z; D- P
<handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">
1 [# X7 v; h) m7 J8 s- Z2 G" Q <activeWhen>
8 s/ u7 b/ G1 g! z <iterate ifEmpty="false"># r8 l- J; L+ E; o% P6 i# o
<and>
6 j: p: s0 `' N+ L <adapt type="com.teamcenter.rac.kernel.TCComponent">& W8 M4 ] U4 U: ]
<test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" /> + g& l/ D+ E, g
</adapt>6 q0 Y+ ~; a' ?/ ?; U
</and>
8 d* J$ ^# P& j( V- d </iterate>: {+ U# m: s i* J
</activeWhen>/ O3 g; {; C" t" N% c5 O# S
</handler>
9 F# V( m5 l4 W% U9 S7 X8 ? </extension>0 Q$ p! t) C& h$ k" {/ [
2 \; r& S, \0 G$ v
<extension point="org.eclipse.ui.bindings">
7 ~3 G2 ~: y) y, _+ B <key commandId="com.mycom.myitem.commands.sampleCommand"2 N6 K4 h J) ^( U! b9 y2 y
contextId="org.eclipse.ui.contexts.window"
( E* q3 K) F! z; M: P: P sequence="M1+6"# L! t1 q. W0 Y# O1 J
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
, J" V3 c4 a6 z- B! B0 R </key>* u- X; M8 ]6 {7 Y
</extension>$ G) F: b9 v7 s. c H2 Y j
( Q: F+ }3 a$ k- t9 V: {
- U$ ?9 Y9 s5 J5 x! p4 X
</plugin>+ h6 i4 ~+ d* n
j5 |- Q0 j q
9 l$ `' O) j5 e. N0 p f |
|