|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。
" \1 [2 e h; o6 z, w* K' 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"?>8 W+ T. D( I1 o0 i4 t
<?eclipse version="3.4"?>
+ r" p; G. P" |' B# x" U8 f, F+ u<plUGin>
! g7 r& \2 k& b% T
; i9 E u; R7 n O1 E+ }' ^: R. { <extension point="org.eclipse.ui.commands">9 P' C" v* Q4 u! A6 `! U
+ X# C2 I8 M! H2 L" {. d. a3 ^
<category name="Sample Category" id="com.mycom.myitem.commands.category" />
5 Y) n% o; f B% ^' y/ i9 _, ~ f <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"2 I" y3 z. C; h4 Y* y
id="com.mycom.myitem.commands.sampleCommand"/>: A7 a7 k# h0 b5 N
5 f+ W* u- [8 t3 {$ D* p! r
</extension>
& Z1 l c2 B* ]% K/ z/ k/ C, h; x- j% S; V6 e \
<extension point="org.eclipse.ui.handlers">
2 o3 P" s9 q& l1 v: P; z <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
' D; [0 K5 ~3 C% ^3 G7 t+ V L" W5 U0 m5 U: @1 x! w
</extension>
* d$ C, r$ @# ^( D v# M
) \1 Z# G2 g1 f* y+ Y$ C <extension point="org.eclipse.ui.handlers">
, u; u8 ?* ?: ?' Q+ a 3 h# P$ Q, f" z$ }) u9 p
<handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler"> N a+ J- _" I2 M1 O! G2 U3 n7 `
<activeWhen>
) k: O/ \# Q. x0 [4 }5 ?( _ <iterate ifEmpty="false">! _9 c! m) }0 t5 v- \
<and>% i/ y& _6 b2 j% z7 N7 C! D# V4 _
<adapt type="com.teamcenter.rac.kernel.TCComponent">
, Y' b. h# f5 I <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" /> Q. U/ R. e$ J( n5 E. a* e6 b
</adapt>
" z5 l6 V& d3 x% W. c0 f7 W </and>
* z0 b& y$ N' [ </iterate>
8 o( r7 g6 i D. O </activeWhen>
+ n2 v6 i: t2 [. b7 e; C </handler>
$ |" _: s u( d9 r/ b9 w </extension>
6 Z, Z' t8 ?3 Y0 C2 g! M
: N9 I' i3 N: O" M+ Q <extension point="org.eclipse.ui.bindings">
{; f3 A j8 T8 @ U <key commandId="com.mycom.myitem.commands.sampleCommand"
- A( a3 l- a1 V' U7 W contextId="org.eclipse.ui.contexts.window"0 O! X! w+ q9 f$ L; W6 D
sequence="M1+6"
0 \9 ]2 h; e3 g+ o2 x schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
' Z: J) H3 Z7 R2 P! i </key>4 Q& B5 E' G( T/ Y! d. T
</extension>
1 m) ~4 P, \- z$ Y / g$ c3 S. e' \. H
5 B# s$ q: F, b4 A) s+ n' [! l
</plugin>8 R2 ~- G: U8 I3 ^5 `' O9 E, Z
7 k' E2 U7 w0 [2 p
7 D. F: ?8 ~: J# q g& z |
|