|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。* T3 U' a1 o) ]" u+ q
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"?>7 C5 q+ x2 r; Z5 e# M. X
<?eclipse version="3.4"?>
* H4 X' \6 _. g+ I6 y( U3 a4 l7 z<plUGin>; P9 d2 L0 G4 p# U$ o
* V$ o, L9 m' J( _6 w <extension point="org.eclipse.ui.commands">
/ k' l' {( {% {* G3 L
* [4 n, X" X% x% N P! `# s) @& b <category name="Sample Category" id="com.mycom.myitem.commands.category" />
6 R2 o5 M# d1 {5 h4 ] <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
g- z+ u7 ~- j8 V id="com.mycom.myitem.commands.sampleCommand"/>
9 {1 y: w m* B8 \# e3 w * \" i; w8 \" G3 ]2 \# g' |
</extension>
2 P7 l! a9 x" H3 t- b0 a" o
- D4 J8 }7 e0 k <extension point="org.eclipse.ui.handlers">
5 y3 J; d6 u. p7 L$ F <handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>* S. s6 ?: U- x6 X% i5 P$ g8 M- X
$ a5 v: p( J9 k' g </extension>
9 G! l; A& r0 ?- X
5 l5 U2 i0 T4 c2 u <extension point="org.eclipse.ui.handlers">
4 l' Q2 v1 U$ {- Z6 ?% }5 `$ _ " ?# y2 H6 d4 e
<handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">
l3 O. y o1 |% f' |, ~4 ? <activeWhen>
P9 D: u7 k! F4 | <iterate ifEmpty="false">7 _. m* W: {' X" G; l- R9 H
<and>
( h! } @( b" p7 | <adapt type="com.teamcenter.rac.kernel.TCComponent">
2 k+ z4 h9 h4 S+ b- \0 l <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" /> 6 Q; n3 ~' m# X6 J9 U, D) Z
</adapt>
& e2 s- |5 V% r* H3 |9 V$ g </and>4 M+ n1 {2 X( I! r$ z
</iterate>& l; z7 i2 Q2 q% }
</activeWhen>
2 [9 H; B% g' S2 z! f6 ^% X </handler>' H& t( Z/ r# R
</extension>) |0 o$ V: L1 M% ]+ [
9 \. n0 C( R" c! c% G& h7 G3 o! d0 W
<extension point="org.eclipse.ui.bindings">
5 Y. a0 g5 Z# ~. {+ g b( j <key commandId="com.mycom.myitem.commands.sampleCommand"
: N+ W2 C3 Z4 {9 [8 i contextId="org.eclipse.ui.contexts.window"
5 u+ C7 q+ S$ L# p7 l/ ` sequence="M1+6"9 _7 M0 D/ u" r" r. N
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">2 ~" E% |) y, H2 j( _
</key>
% ~* F' l# o) ^+ L% Q# s/ b2 h </extension>
4 Y) K6 M$ ^2 Y$ g; E
" Q# y7 ^- b3 A4 b
' u B3 s5 n- H- { ?" ~& Z& v( K$ e</plugin>
v; N. p: g0 T0 o4 D+ b+ |
- `. h) } p) a4 ~$ p9 F/ k4 ?
+ k) `, b0 H, ?; m& {& | |
|