windchill9.0 添加菜单

在 /Windchill/codebase/config/actions目录中有两个文件:custom-actionModels.xml和custom-actions.xml
第一步:
   custom-actionModels.xml中添加如下代码:

   <?xml version="1.0" encoding="UTF-8"?>

   <!DOCTYPE actionmodels SYSTEM "actionmodels.dtd">

   <actionmodels>

     <model name="main navigation">
     <description>Main navigation (tabs)</description>
       <action name="home"      type="navigation"/>

       <action name="program"   type="navigation"/>

       <action name="product"   type="navigation"/>

       <action name="project"   type="navigation"/>

       <action name="change"    type="navigation"/>

       <action name="library"   type="navigation"/>

       <action name="org"       type="navigation"/>

       <action name="site"      type="navigation"/>

       <action name="supplier"  type="navigation"/>

       <action name="customization"   type="navigation"/>

       <action name="FRURelationship"  type="navigation"/>
   
    </model>
</actionmodels>

第二步:
  custom-actions.xml中添加如下代码:

  <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE listofactions SYSTEM "actions.dtd">
<listofactions>
<objecttype name="navigation" class="" resourceBundle="com.lenovo.fru.fruSubTabRB">	
<action name="FRURelationship" enabledwhensuspended="true" renderType="GENERAL"> <command class="netmarkets" method="netmarkets/jsp/com/lenovo/fru/testTree11.jsp" windowType="page"/>
</action>
</objecttype>
</objecttype>
 </listofactions>
 
第三步:
 
在Windchill/src/com/lenovo/fru中创建文件fruSubTabRB.rbInfo
内容如下:

ResourceInfo.class=wt.tools.resource.StringResourceInfo ResourceInfo.customizable=true ResourceInfo.deprecated=false navigation.reports.description.value=Reports navigation.reports.description.comment=Used for the text on the creports subtab under the home main tab. navigation.reports.tooltip.value=Minor Tab: Reports navigation.reports.tooltip.comment=Used for the text on the tooltip for the reports sub tab under the home main tab. navigation.reports.moreurlinfo.value=lmt=25 navigation.reports.moreurlinfo.COMMENT= DO NOT TRANSLATE navigation.reports.moreurlinfo.pseudo=false navigation.reports.activetooltip.value=Active Minor Tab: Reports navigation.FRURelationship.description.value=FRURelationship navigation.FRURelationship.tooltip.value=FRURelationship

最后一步:

在windchillshell中运行如下代码:
ResourceBuild %wt_home%/src/com/lenovo/fru true

至此成功!
 
发布了24 篇原创文章 · 获赞 4 · 访问量 10万+

猜你喜欢

转载自blog.csdn.net/wangxiaomei2008/article/details/2317933