|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
【Teamcenter胖客户端开发】teamcenter添加视图和透视图<2>
- o+ f, n. v. \' v. B+ f1 ?1 r4 C) s
(1)添加View。" ]; Y1 ?. ?/ }0 s4 P1 g% K
0 f/ p- M' N( [5 A6 ~, l
添加扩展点,创建包和类com.plmhome.plmhomeView.plmhomeView即可。& f1 b( {. n) x$ i- n& V$ E
$ K/ {; Z) R, t. L7 L; i, U <extension+ Q) K7 y& \8 D
point="org.eclipse.ui.views">
" o1 g- t) Q# h1 R1 ~* p <view1 O& Y$ j0 }$ y. P
name="Sample View" c! j7 f6 D$ T# t8 h
icon="icons/sample.gif"
; O( ?" b* W2 t6 `& x: I class="com.plmhome.plmhomeView.plmhomeView"
$ U; g1 a2 ^5 c4 B id="com.plmhome.plmhomeView.plmhomeView">9 e6 M4 @/ V6 X
</view>2 H0 k/ [ J! `; p# P# }
</extension>: j9 X0 s& O- B$ Q, i2 I$ L
4 E7 ]: Q$ W' E y& Q( g2 P
2 w5 o6 h0 {0 D; N
& K$ Q$ w2 T/ [! s# G4 E2 E) U(2)创建Application的perspective# Q7 m4 @; |5 @9 L% }! J1 V1 I0 L
( u9 \7 r+ y2 e; e& M+ N' y: ]<?xml version="1.0" encoding="UTF-8"?>. w" A6 C/ u/ k
<?eclipse version="3.4"?>
" R& C! k! x0 O" s<plUGin>: Y& z* U& q2 F$ y1 D
% V0 g% A3 k4 m9 Q <extension point="com.teamcenter.rac.aifrcp.application">
1 E6 p8 p- x$ U4 G7 l3 D <aif_app_item
4 A$ V+ v6 _8 T6 m( V0 m displayMode="Primary"
" Z" c; j' V2 d( m groupName="PLM之家TC工具包"( J2 M& e* K2 O5 k _
icon="icons/plmhometctoolkits_32.png"0 h" K, |; ?: ~; l( O8 [" z7 h
id="com.plmhome.plmhomeapp"( C P4 L$ D$ e# x
name="PLM之家TC工具包"4 k! l: [5 h9 X' p( P
ordinality="200"+ z4 R, q( s+ ^ v0 l
perspective_id="com.plmhome.perspective.perspective"3 t$ M1 V1 \# K o( \/ n: r5 `) b
session="com.teamcenter.rac.kernel.TCSession"1 R0 o8 n3 Z" U; r- D6 v
tooltip="PLM之家TC工具包-Teamcenter管理员工具"/>
0 n) M$ a; e+ U% ~8 W: ]9 ?</extension>% n- T% p' ^/ [; R
' A7 \1 x8 ?! G( [
<extension point="org.eclipse.ui.perspectives">* j! D9 Q! D" ~3 X4 U
<perspective
! R* { Z/ Q' Z8 j6 F! w' F class="com.plmhome.perspective.perspective"
8 v: T: o$ d! i2 H' q% |/ ~ icon="icons/plmhometctoolkits_16.png"
; [; b; f( B5 @3 J8 v! N5 ]5 a, ?1 Q8 ] id="com.plmhome.perspective.perspective"
! N+ z. ]0 R" v name="PLM之家TC工具包"/>
# Y4 D6 U5 G' p, @2 Q- k</extension>% G3 h' S3 \9 U7 P
7 T0 y4 B: M3 D- q. ]# ]) e
1 E* O+ h3 n% E0 Z0 K <extension9 N3 h4 Q- S- C, G* }' X1 E, K
point="org.eclipse.ui.views">- N1 J5 @( R& X
<view
; v5 Y) l9 t! v( T8 q name="PLM之家TC工具视图"
. o2 ?$ u# ~8 M Z4 Y/ u, p icon="icons/prew.gif"
1 W: E3 G M. d! Z$ g6 P class="com.plmhome.plmhomeView.plmhomeView"
: e: ~1 ]( n$ G y id="com.plmhome.plmhomeView.plmhomeView"/>. A9 D' p2 b$ D: V/ l
</extension>/ u; ?3 `: h4 G5 S4 A" a
' r) Q! m8 x8 v$ B/ F
<extension point="org.eclipse.core.expressions.definitions">3 x2 z; v, ?7 N1 m) \
<definition id="com.mycom.customapp.inMainView">0 d; l" q w& {9 k7 K
<or>8 \( i0 _0 a( ~5 z5 ^2 h9 O/ |: {
<with variable="activePartId">
. G2 ^- W0 ^1 H9 V, S2 ?3 w2 a <equals value="com.plmhome.plmhomeView.plmhomeView" />
- Z5 B& E) g# q! m/ B </with>
1 w! Z* A b. U' N4 D <with variable="arc_property.ACTIVE_APPLICATION"> P& L# c4 O. ^+ o+ f
<equals value="com.plmhome.plmhomeapp" />3 U L1 K! K6 L$ U9 n
</with>
; j. d4 A4 b$ B4 K% {: J </or>4 i6 H9 C, Y [ \( M) X
</definition>
: x& A" D$ e+ \ </extension>( l! `) B# ]" P2 u2 @
2 C8 ~; P: W4 j5 D' F2 M+ l( O</plugin>; a+ T* ]8 d. X+ j' r' S0 g
. V. J2 h9 r2 A2 N2 ~; \' F8 t' F5 z% F/ V- c
: Z( m$ F2 ^' g* \
, J3 F" s2 r( k) e0 z' R1 q |
|