|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
【Teamcenter胖客户端开发】teamcenter添加视图和透视图<2># Y6 l; x& ?4 s% }6 o
2 {' Y4 s2 [( T4 S3 |(1)添加View。# ~7 G( @- T" e# [. s
' ]$ r# F; T% r/ r" D
添加扩展点,创建包和类com.plmhome.plmhomeView.plmhomeView即可。
; Y$ _, e0 M& j3 j
: ?0 E9 a' f! A0 z/ } <extension
8 t, L0 g, y3 ~& i* r' z0 u point="org.eclipse.ui.views"> y& u3 _$ q5 Q6 O
<view' `* s' \! Q3 Z, B7 h7 `
name="Sample View"
% P5 R8 T/ G0 W- i; t- z y icon="icons/sample.gif"
! c) t/ ^& F$ K, J" Q class="com.plmhome.plmhomeView.plmhomeView"
" I2 I) h8 f% R$ w( }4 d id="com.plmhome.plmhomeView.plmhomeView">
- J7 c. e; i% W </view>
2 V& f( Z# [, Q* z </extension>0 h; t8 M. P |* ]
5 |! n2 F% \$ p
0 V( _" f+ \8 _- ~" Y( H8 Q# f( l; P3 [* o3 E7 r8 @. R' m7 m
(2)创建Application的perspective( R! P" Q( }6 B; J- D3 k, W. n& J& k
+ K' e- {3 J3 X y<?xml version="1.0" encoding="UTF-8"?>
/ V5 `% }3 \! R<?eclipse version="3.4"?>
7 i- m" ]$ Y4 B4 Y. l+ @<plUGin>
0 l2 O2 I% W) z& z2 C3 e8 n; B3 T1 J# s2 m% l
<extension point="com.teamcenter.rac.aifrcp.application">
! y' w2 c' J8 l( y5 S! k <aif_app_item
5 }4 H- [9 W& X* }" X displayMode="Primary"- B- c) y! h4 R% o8 Q' H' N
groupName="PLM之家TC工具包"( W- {( O+ T1 F8 r0 B& L, Q
icon="icons/plmhometctoolkits_32.png"
% B! I; j( t0 {% X! l' F( H id="com.plmhome.plmhomeapp"
2 b/ a [+ y% e) Z7 d+ M name="PLM之家TC工具包"
2 ]8 U+ t' p( c/ J- V ordinality="200"
- T, x$ z$ i4 o4 B. G! [- u/ u perspective_id="com.plmhome.perspective.perspective"9 b3 Q1 ]7 g) \* }! I ~5 _/ a
session="com.teamcenter.rac.kernel.TCSession"
$ Q& Q. F* e5 w1 p' C- F* y. f8 |7 a tooltip="PLM之家TC工具包-Teamcenter管理员工具"/>0 t3 e) J% B$ l, w3 d$ I
</extension>$ j. ~: p6 Y* I7 R6 L8 n
( t) \$ f, k* a4 ^7 @4 ~ <extension point="org.eclipse.ui.perspectives">
4 z- v; W4 b. G% j- b+ J- U" O% s& B3 o <perspective+ W/ f1 k' T: v$ H% p$ |6 ^) W
class="com.plmhome.perspective.perspective"
( @2 M, I1 I4 V' c- S+ P icon="icons/plmhometctoolkits_16.png"
2 p( {+ Q. Y1 }; |9 H) B4 k id="com.plmhome.perspective.perspective"
$ s4 g" v) n1 H/ Y. _' L) S4 P8 m name="PLM之家TC工具包"/>& U" J$ }8 g! r1 @/ w2 R
</extension>: Q; L% O; e$ o G- x
- X2 |3 u8 D/ n$ l
4 Z1 G2 B% ^" M: Q0 K
<extension
$ ^- z' v( n0 @ point="org.eclipse.ui.views">* _- `1 ^( \& T* C- b k0 b6 g& y
<view
2 A+ p0 m- d( I" J7 N4 j; Q4 Y name="PLM之家TC工具视图"
1 `2 @% n! j3 O4 i ?) J5 ? icon="icons/prew.gif"
5 I3 r: w) W* x class="com.plmhome.plmhomeView.plmhomeView"
5 ^: f* I1 a$ a: f id="com.plmhome.plmhomeView.plmhomeView"/>1 b6 m: E2 Q0 I4 T
</extension>
8 j& a! K: Y" X) N4 g- B; |: \- A2 [3 @; m
<extension point="org.eclipse.core.expressions.definitions">4 o# t& }1 m, D6 G9 R( k/ X( S4 D
<definition id="com.mycom.customapp.inMainView">, C! R/ b# Z+ Q9 M! p
<or>+ H0 q$ N0 ?# _1 n" b# z
<with variable="activePartId">
4 N3 p, V) n) f3 m( Q8 L* b <equals value="com.plmhome.plmhomeView.plmhomeView" />: E( ` {% ~8 P6 s& v
</with>
7 K' N1 ]: Y" }0 e' C% @# I <with variable="arc_property.ACTIVE_APPLICATION">+ O! f* m5 l* }* a$ S2 _
<equals value="com.plmhome.plmhomeapp" />
6 P7 o1 v6 f4 ~+ g8 F </with>/ i- @$ q& j- u `2 D; T
</or>0 ^0 l" U2 K: M5 l
</definition>* _7 P; k. @/ S. u
</extension>
9 Y( ?1 Y& J6 A. E% V
* |+ F( y* R1 d</plugin>7 j# T+ j7 e. R! M6 I' O
( [" q6 M+ k' Q0 Z- j
& G# ?) d ^+ R5 ^2 Y# B
- G! S! d8 d9 q# _
1 f3 ~6 \" `* \6 P9 _ |
|