|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
【Teamcenter胖客户端开发】teamcenter添加视图和透视图<2>& R6 d8 D& L7 R& q( I* \4 d, m
5 s3 G" s; v2 ^4 _1 C" y$ ^* z, S(1)添加View。$ @1 s8 w+ w y, L. h
7 p, \! x3 ~0 L# I# c
添加扩展点,创建包和类com.plmhome.plmhomeView.plmhomeView即可。9 T5 P/ \" m3 q' n0 d, c7 E7 z
3 |% R( t# [/ O* Z
<extension
3 N0 I8 _( o2 _+ n point="org.eclipse.ui.views">; a6 }! u! u3 t3 i' d* L
<view
. I% [: u2 a! I5 z name="Sample View"
- d! u0 N% x3 L1 R6 l2 f icon="icons/sample.gif"
, |4 `. [. Z" k& |$ ~0 V: H class="com.plmhome.plmhomeView.plmhomeView"$ ~! I! t8 m8 w
id="com.plmhome.plmhomeView.plmhomeView">
# p' B2 u5 t: t6 X/ r </view>
7 U. `$ M, ?" v3 b </extension>8 d' [5 b/ h$ k5 u$ j* g
/ p) `% E$ ~9 F
+ r j) M5 M& D0 y6 E: z
, K! |8 m* {: w1 C- E(2)创建Application的perspective5 y N# x# [# s$ d, P- ?$ o' n3 R
! s0 ?# q" c I% B; d3 ?
<?xml version="1.0" encoding="UTF-8"?>
: U+ J1 [/ T" a) q$ L<?eclipse version="3.4"?>. Z$ P E7 |! h3 P: ]
<plUGin>
e1 d. a; e" J8 D1 Z5 \& e4 Y1 q. Z6 R9 e: w4 O2 q$ T
<extension point="com.teamcenter.rac.aifrcp.application">
" q8 Y, F( E" j+ Z7 K8 B/ k) g7 E <aif_app_item8 ? r- O* O8 e* x; x! F! w* n
displayMode="Primary"
# Z4 f: L: C3 P groupName="PLM之家TC工具包"/ y0 B4 e% ^$ b5 W% }
icon="icons/plmhometctoolkits_32.png"
' E1 H1 ?9 b& T id="com.plmhome.plmhomeapp"
: G4 K- `+ M" D0 N name="PLM之家TC工具包"
9 e9 x: s5 @3 ?- D8 F0 t3 H3 m ordinality="200"/ U+ X2 g2 ?. P0 l# k. {4 o
perspective_id="com.plmhome.perspective.perspective"* i! |, B8 p6 ]. q: @5 z* J
session="com.teamcenter.rac.kernel.TCSession"
. k1 d, s% ?3 x! d: F* ` tooltip="PLM之家TC工具包-Teamcenter管理员工具"/>5 }- y$ B$ g9 q1 h7 L
</extension>2 o3 B, _% f+ {, Z3 w* F) ~3 l
( F/ \2 n0 w& b! k6 d; z8 _) b
<extension point="org.eclipse.ui.perspectives">( [! `: g" x1 Y; i$ U
<perspective
$ S1 c: x- K# U9 d: L2 i; _ class="com.plmhome.perspective.perspective"' l& v( ^5 F# g) o" }1 L3 H# M
icon="icons/plmhometctoolkits_16.png"
# { _, W1 t7 S* B$ K id="com.plmhome.perspective.perspective"4 y& @; W! D& Y5 {, x
name="PLM之家TC工具包"/>/ ]! e- g7 k% L) _: M9 f9 k0 l9 m
</extension>
6 c% }/ v' O+ I) |+ T/ V# e5 M
1 S0 n, q5 W- ]( Y# y9 B3 Z2 D3 j1 s( |5 p1 f$ f
<extension
+ k7 ?8 ~2 A1 u7 G& A/ l f point="org.eclipse.ui.views">
+ `: }# e0 Y* C' L' R8 B" S/ O <view
- N* @8 [( p3 A0 J- d$ e name="PLM之家TC工具视图"
) l, z+ I$ j( }9 d3 Q icon="icons/prew.gif"
" c$ H! E! x9 W; [ class="com.plmhome.plmhomeView.plmhomeView"
. ]" [/ w8 J$ l: u3 x5 A. B id="com.plmhome.plmhomeView.plmhomeView"/>
0 g2 R& h4 A9 v% \% T. P6 N </extension>/ R( e+ i" p! y
3 I7 x; N; q# C
<extension point="org.eclipse.core.expressions.definitions">
( V2 A+ h/ h' ? h <definition id="com.mycom.customapp.inMainView">* F4 ?. f; o& P" \, E$ \
<or>
4 T" h4 ]% u5 m$ p% [- a <with variable="activePartId">: @8 f% d8 c5 O \
<equals value="com.plmhome.plmhomeView.plmhomeView" />8 X+ U C, Y: U& u8 d4 d8 r
</with>
$ d$ Q$ G& h" _ x7 X <with variable="arc_property.ACTIVE_APPLICATION">
# L4 s' q) v& {3 f! b& g <equals value="com.plmhome.plmhomeapp" />
+ q+ S6 p8 c& E# ]+ T0 p </with>; s! l$ B( p- k9 Z
</or>9 u! V1 [4 c4 X/ t
</definition>
. ^' G+ l1 A) e- m& n% [ </extension>
9 o8 M8 v; P7 R2 [) b" a M" A' S N
</plugin>
2 l- B9 q% L, ^( u$ f
: [3 q$ C1 g y0 {! ?$ q& {4 A1 Q; K$ u: f( _# r( e
- \- t2 f6 O" p, m" D1 @* m, A
7 x4 |' T: f( v0 ~$ X2 [, G
|
|