【Teamcenter胖客户端开发】teamcenter添加视图和透视图<2>
【Teamcenter胖客户端开发】teamcenter添加视图和透视图<2>(1)添加View。
添加扩展点,创建包和类com.plmhome.plmhomeView.plmhomeView即可。
<extension
point="org.eclipse.ui.views">
<view
name="Sample View"
icon="icons/sample.gif"
class="com.plmhome.plmhomeView.plmhomeView"
id="com.plmhome.plmhomeView.plmhomeView">
</view>
</extension>
(2)创建Application的perspective
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension point="com.teamcenter.rac.aifrcp.application">
<aif_app_item
displayMode="Primary"
groupName="PLM之家TC工具包"
icon="icons/plmhometctoolkits_32.png"
id="com.plmhome.plmhomeapp"
name="PLM之家TC工具包"
ordinality="200"
perspective_id="com.plmhome.perspective.perspective"
session="com.teamcenter.rac.kernel.TCSession"
tooltip="PLM之家TC工具包-Teamcenter管理员工具"/>
</extension>
<extension point="org.eclipse.ui.perspectives">
<perspective
class="com.plmhome.perspective.perspective"
icon="icons/plmhometctoolkits_16.png"
id="com.plmhome.perspective.perspective"
name="PLM之家TC工具包"/>
</extension>
<extension
point="org.eclipse.ui.views">
<view
name="PLM之家TC工具视图"
icon="icons/prew.gif"
class="com.plmhome.plmhomeView.plmhomeView"
id="com.plmhome.plmhomeView.plmhomeView"/>
</extension>
<extension point="org.eclipse.core.expressions.definitions">
<definition id="com.mycom.customapp.inMainView">
<or>
<with variable="activePartId">
<equals value="com.plmhome.plmhomeView.plmhomeView" />
</with>
<with variable="arc_property.ACTIVE_APPLICATION">
<equals value="com.plmhome.plmhomeapp" />
</with>
</or>
</definition>
</extension>
</plugin>
页:
[1]