一、安装 teamcenter、eclipse。为方便使用,一般安装在根目录。
展开 Eclipse 的 Window 菜单,选择 Perference
设定 Java 的 Installed JREs 环境为 1.5/1.6(TC8)
设定 Plug-in Development 的 Target Platform 的 Location 为 Teamcenter
Rich Client 目录
二、Rich Client 开发步骤
新增 Plug-in Project
输入 Project Name(譬如 com.customer)
去掉 src
选择 Target Platform Eclipse 的版本为 3.2
选择产生 Activator
选择此 plug-in 将传递到 UI
选择不要建立一个 rich client application
展开 META-INF 文件夹,双击 MANIFEST.MF
在 Dependencies 页签加入以下 Required Plug-ins
com.teamcenter.rac.aifrcp
com.teamcenter.rac.common
com.teamcenter.rac.external
com.teamcenter.rac.kernel
com.teamcenter.rac.neva
com.teamcenter.rac.tcapps
com.teamcenter.rac.util
org.eclipse.ui
三、eclipse 新建项目
四、Rich Client 开发步骤
4.1 在 Runtime 页签加入 Exported Packages:com.customer
4.2 在 Extensions 页签
加入 Extension Points:com.teamcenter.rac.util.tc_properties
设定 Extension Element Details 的 pluginName : com.customer
4.3 Rich Cient 开发使用 Eclipse Plugin 的方式
com.teamcenter.rac.util.tc_properties 是提供我们修改系统
property_user.properties 的进入点
不同的客户化功能会使用不同的 Extension Point
4.4 点选 plugin.xml 页签,确定内容是否类似
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension point="com.teamcenter.rac.util.tc_properties">
评论1