|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
【Teamcenter胖客户端开发】teamcenter添加视图和透视图<2>. X2 x, C5 H0 m6 A9 x+ a" r& F
$ D( O4 K+ C/ T1 D
(1)添加View。
7 ?9 }' Z6 P3 s1 @( t. I( `0 H7 o2 h) k$ E; j8 i) F
添加扩展点,创建包和类com.plmhome.plmhomeView.plmhomeView即可。! } {7 z6 h) Z1 M! P- q# Y
' c% J. Z5 q5 _! F% v! y <extension
: w, z& Y' C" Y point="org.eclipse.ui.views">
8 h( k- n8 R0 ]: _! H3 i <view
C8 e, P6 a" S1 ?# e1 P' x" R name="Sample View"3 t* S& Y0 d5 X; y G
icon="icons/sample.gif"
7 E. z+ b) M8 j3 E4 q' }* X class="com.plmhome.plmhomeView.plmhomeView"- P5 W! o6 q7 T8 U6 T- S
id="com.plmhome.plmhomeView.plmhomeView">
# n" K: [6 G" B4 C$ F5 ] </view>
7 c" p& X$ r) Q) C2 h# D1 b </extension>( p$ R# V/ M g& M* q
: z" ~+ c& W! Z* N; Q$ j) t G; \+ x
4 W* h9 l ?1 |
2 j* n+ r* _% t0 C& M5 ^(2)创建Application的perspective
; z) Z" t* C* R3 Z, J5 K' ^1 i P( `& x7 T8 n
<?xml version="1.0" encoding="UTF-8"?>
% \# Y& Y" N0 t P; D; Y8 a& n<?eclipse version="3.4"?>$ s7 [) Y s% |3 u
<plUGin>
; r+ Q) K: S' I! E% {( ^* i* d/ O1 C$ B' P. o& Y
<extension point="com.teamcenter.rac.aifrcp.application">
1 P; X- E& a2 q* Z! b <aif_app_item( o- i& h, K" [" l/ O" b: ` H
displayMode="Primary"
7 c& X- E. O9 `- ^ I4 N+ A groupName="PLM之家TC工具包"2 _$ r, W+ H% {# Y- A
icon="icons/plmhometctoolkits_32.png"
$ Z5 H3 M `/ D6 Q id="com.plmhome.plmhomeapp"
4 u/ Q! @4 i8 o! M( M9 t name="PLM之家TC工具包". ]; F4 _! q/ B/ \0 i( [5 F! C7 a
ordinality="200"
. v# O; U; v( D1 ]1 [. X0 C8 k perspective_id="com.plmhome.perspective.perspective"
( ^+ X5 A" z: [1 z7 ^1 `1 n% E- g session="com.teamcenter.rac.kernel.TCSession"
+ N1 W5 |' j2 G tooltip="PLM之家TC工具包-Teamcenter管理员工具"/>1 E4 V7 w& j- D+ D) R+ i
</extension>
1 j3 E' X' A: o* B& n1 `, W1 c/ K) U( a7 A
<extension point="org.eclipse.ui.perspectives">! I- P+ D# W6 U7 M6 d. R+ V
<perspective
3 o$ o- u" w8 \- ]1 z$ ~) v# j class="com.plmhome.perspective.perspective"
% {# {5 e& n1 l2 `+ Z9 @ icon="icons/plmhometctoolkits_16.png"9 ?, j8 R2 I: k
id="com.plmhome.perspective.perspective"
1 ` F" ?; w: k5 W& ]7 x2 @% N name="PLM之家TC工具包"/>
" Y2 W* I$ U U) x( A$ P$ `* G</extension>
, K% S7 k t, |- ^0 ]/ i
) |9 `- M& {1 j1 n" Y' {9 h, q4 M* L) g
<extension7 q U* i& b; d5 e# w+ y
point="org.eclipse.ui.views">
& f. a% @# d+ t <view
! ?6 y7 a! k$ a* l name="PLM之家TC工具视图"* U/ N9 o, S' @: I
icon="icons/prew.gif"
( u" }8 V. I+ ? class="com.plmhome.plmhomeView.plmhomeView"9 d6 n) J. ]2 A9 L1 N4 ~
id="com.plmhome.plmhomeView.plmhomeView"/>! `0 L9 n& Y$ P/ y6 e' L3 M
</extension>
8 ]$ o+ h/ H: @" I4 s! s
) i- D9 c+ q0 R" u4 i6 L3 K" _<extension point="org.eclipse.core.expressions.definitions">
' M7 p' v% d6 L) @3 y) h <definition id="com.mycom.customapp.inMainView">2 ~# L; W' C5 j0 n. |0 ], G
<or>
& U' s5 c9 Y1 Y% M <with variable="activePartId">/ u3 d" P# z3 \ z6 G; {
<equals value="com.plmhome.plmhomeView.plmhomeView" />
5 m) ~; f$ o5 s$ X' O7 o </with>
: ?& K7 V" v. [ <with variable="arc_property.ACTIVE_APPLICATION">1 x% E( h6 S% E: `7 i d1 P7 x
<equals value="com.plmhome.plmhomeapp" />0 E7 q7 w4 u" B b, `& X+ o
</with>
8 E0 h- ^3 R, Q9 P# C </or>
% m; L8 G0 ^2 r8 C" T </definition>
! k" ~1 C5 ~8 b7 W* ?( Y9 q </extension>
6 j. D# z* _$ \* Q8 ]
: [+ c# c& D! _8 j6 i( B8 t</plugin>/ y# N" G9 ]6 f3 l0 q
& n( l: ?: {, R
6 e1 F, ?1 w/ z5 j: X. R3 |, A
2 n3 C0 U, D, k5 G4 b" l/ O
- j ^6 Y) H! M0 r |
|