|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
【Teamcenter胖客户端开发】teamcenter添加视图和透视图<2>9 y0 w2 d0 q) p- r
/ ?1 g4 b% m+ d- v5 S6 O
(1)添加View。1 y, `) k/ i- _9 Y/ L
; Q: @" r4 o0 z. J) J8 U添加扩展点,创建包和类com.plmhome.plmhomeView.plmhomeView即可。
1 _5 S( P- J7 m, U" i% |- c& P$ L- {' B# Q
<extension/ r: J& F; t) @2 c+ t4 O/ v
point="org.eclipse.ui.views">
7 y$ O" z( ?' g B# O! D7 T$ p <view9 H0 U' J1 D$ K2 W) ]0 Y4 t
name="Sample View"8 j3 N1 h: D8 F/ P! N6 z) @9 a
icon="icons/sample.gif"
4 [$ k- L0 \3 |* ~ class="com.plmhome.plmhomeView.plmhomeView"
* f% d; p" E" W2 x" Q& [8 j4 ? id="com.plmhome.plmhomeView.plmhomeView">
3 f8 d3 [4 O9 q1 I </view>
' [4 L* D# ^9 u5 r' z3 V </extension>, J8 g; \5 A6 A9 V- G& l* j2 O
; d: a7 h) p/ [2 e1 D6 r5 X
5 |% s! A9 ?% G! q' R! G; \/ f% R
5 f& N1 N, f L" E(2)创建Application的perspective
& E# H5 }8 E8 t" Z9 u: s% H) A/ u5 T
<?xml version="1.0" encoding="UTF-8"?>
% X4 r0 t ~" }9 q<?eclipse version="3.4"?>
: h8 w, k3 p0 u+ L1 g# S( X<plUGin>
+ |+ d: M+ e) `# S8 Q {& Y+ U+ s4 m5 u
<extension point="com.teamcenter.rac.aifrcp.application">
, \$ N/ S& N0 Z! T <aif_app_item+ O& b# Q1 P7 Q/ i) J
displayMode="Primary"" C* T4 V4 M& r- H
groupName="PLM之家TC工具包"0 f6 W. R# t: o. r+ s
icon="icons/plmhometctoolkits_32.png"% s1 S/ Z% o3 W3 i0 d
id="com.plmhome.plmhomeapp"
1 W# Y- J9 ^ @/ Q% \+ v name="PLM之家TC工具包"* V' z+ q3 L: i7 L6 q% \
ordinality="200"
0 o, Q$ O7 m4 D# i8 X4 i( j6 ? perspective_id="com.plmhome.perspective.perspective"* n$ K& B1 [/ C1 {6 Y \: E
session="com.teamcenter.rac.kernel.TCSession"
: I7 z, ^* X" U+ k5 k tooltip="PLM之家TC工具包-Teamcenter管理员工具"/>
* M! w% j) s, P/ U3 v</extension>
4 }9 B {8 _, S. ?
$ e- t, e" Q5 b <extension point="org.eclipse.ui.perspectives">
& M4 y# _* W& }$ C5 ]# r* b V; p <perspective
6 Q. d/ G7 d8 Y class="com.plmhome.perspective.perspective"/ o% r9 a* |% \, ^8 j6 ^: ?
icon="icons/plmhometctoolkits_16.png"
) [: Q4 `! k0 R: A6 e1 C id="com.plmhome.perspective.perspective"' Z& d9 F+ {- K( |4 P
name="PLM之家TC工具包"/> p% M' }) g, t$ U
</extension>
+ U/ O% X1 r8 [, z4 `6 |* z9 B
" T# c6 Y( { e$ j
1 r- V- N9 C( l! g! k <extension
1 v1 ~* V# b, _) c0 f g+ d point="org.eclipse.ui.views">
; q1 `9 n5 \& P9 j1 l/ p <view
* ]+ t! O( L7 ~0 G; W name="PLM之家TC工具视图"
" a! P3 A9 K8 d4 r) p! M icon="icons/prew.gif"' T! N# t* P8 W2 b, m& B, k
class="com.plmhome.plmhomeView.plmhomeView"
7 i `: g: s7 E: r7 o id="com.plmhome.plmhomeView.plmhomeView"/>
, c2 y0 m+ L7 ~1 J; H- y </extension>5 R* G; B1 @: a: x u5 H
( ~$ v- T0 r( Z
<extension point="org.eclipse.core.expressions.definitions"># p0 w5 ?# x/ J1 G- ~
<definition id="com.mycom.customapp.inMainView">, H$ P( f' r% B- Y
<or>7 E5 [7 T! D/ M$ f
<with variable="activePartId">
% r* l+ w: a; y# o( I, L$ W <equals value="com.plmhome.plmhomeView.plmhomeView" />
4 U* M% k4 t! S. i9 X* _$ _ </with>5 R, p3 i, l# E7 Z; I
<with variable="arc_property.ACTIVE_APPLICATION">
& L. g# k& w: H <equals value="com.plmhome.plmhomeapp" /> w. S. Y' w5 p9 B# \" F; a% m
</with>- g C! A& o3 ]! Q9 _+ P
</or>
+ Y( \- L' b) W& c4 S& P </definition>1 U. L2 g7 ^( B# @& k/ B& L
</extension>
4 P5 s9 C- G, i; q9 V* ^# \4 U% U1 |
</plugin>
# N. s$ a. r* d' L. X9 t8 w" |; O M7 V7 {: i' X' K
1 m# _$ c+ } Y% P! H0 |( s
' W; S, R4 X* z1 j" ^/ k7 z
X' }+ K+ l# e' z* x& n
|
|