|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
谁有开发过这个override Teamcenter commands 求教。。
6 h: G% W% o' l7 W6 M! Qfile:///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 L7 ^5 ]! _& [) e4 B- S<?eclipse version="3.4"?>6 ~9 q; } r3 I- L. a, W
<plUGin>. B+ v+ l* R f8 F
! Q. B/ r4 X% N- |9 ? B <extension point="org.eclipse.ui.commands">
9 S7 b& w& S6 @! W Q4 `7 l, k
& y# l, p& N8 ]; t5 M4 h2 K' p' W# V8 } <category name="Sample Category" id="com.mycom.myitem.commands.category" />
1 U! i6 C' f9 c$ Y! q <command name="Sample Command" categoryId="com.mycom.myitem.commands.category"
: E; I4 g8 X8 K& c# O id="com.mycom.myitem.commands.sampleCommand"/>5 z2 v3 `& e% F: r6 T6 x# [
) l7 j8 J- u3 c
</extension>
$ e2 ?& _$ f$ o$ W+ r) \: W! w3 ]* o" z- r, P& X5 m0 i H* Y
<extension point="org.eclipse.ui.handlers">. D. P H' }9 U a
<handler commandId="com.mycom.myitem.commands.sampleCommand" class="com.mycom.myitem.handlers.MyItemHandler"/>
1 z' k; s _5 i8 n& m4 z# u/ S9 N. }
</extension>7 ~8 N$ w0 y9 j: e3 ^/ q
J1 [8 i3 R8 |6 F6 J N& ^. s <extension point="org.eclipse.ui.handlers"># R7 e. \0 a5 U# ?1 l8 S# R7 {8 a* U5 u
/ {' x; {4 d3 E, b/ A0 [5 v/ Q$ H
<handler commandId="com.teamcenter.rac.newItem" class="com.mycom.myitem.handlers.MyItemHandler">! U% A$ r0 e; r% u) r
<activeWhen>
9 F1 i3 ]7 H. x7 O. ^' O$ R$ q <iterate ifEmpty="false">
! [: v" @5 z, i0 p6 |( P0 m+ C. S <and>
' u- l' }" G1 X! W& t0 b <adapt type="com.teamcenter.rac.kernel.TCComponent">
$ j+ f# a P& G7 T/ x1 R; K. U <test property="com.teamcenter.rac.kernel.TCComponent.typeClass" value="Folder" /> ! K6 ?/ j5 ~" z* m, d% M; I$ [0 d
</adapt>1 }% w6 x# Q1 H; V6 k& |
</and>) X( O- O2 u- {' a4 ~. w4 _: S- ]
</iterate>
+ O& `. S. Q# W( [- a& z </activeWhen>
8 J0 _6 o) N1 Z </handler>2 ^( w7 C& b* i! d
</extension>5 M/ J, {& v8 B9 S( C
. z6 r# z6 G5 S; ]5 f
<extension point="org.eclipse.ui.bindings">
/ p2 W6 K! S: G <key commandId="com.mycom.myitem.commands.sampleCommand"
9 s! d4 f' I. v# s6 K( g, Q$ } contextId="org.eclipse.ui.contexts.window"0 l5 y7 f. r$ b; T; i3 T5 W6 |% h
sequence="M1+6"& K" e1 L6 _, f) j3 h! L
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
7 p' Q3 v) Q( ]! G </key>8 Z2 ^ Q6 i* m7 R# e) D* f
</extension>6 l2 u! Y0 ^# C& G
% k" r% e4 P+ d
; {' Y/ r1 e1 d: [* Z2 Z8 C
</plugin>8 a8 l( E9 d% i
. W4 P" W; E9 d7 s: n* O# w- u* c/ U# ^/ u/ l/ T3 y+ P
|
|