基本的なカスタマイズ > ユーザーインタフェースのカスタマイズ > 操作の追加と UI への組み込み > タブモデル > 目的 > ソリューション > 手順 - ナビゲータのさまざまなレベルへのタブの追加 > ナビゲータの第 1 レベルタブの追加
  
ナビゲータの第 1 レベルタブの追加
このセクションでは、ナビゲータにカスタム第 1 レベルタブを追加する方法について詳しく説明します。
custom-actions.xml に操作を作成する
custom-actions.xml に新しいタブ用の操作を作成します。操作に持続性が必要な場合は、ナビゲーションサーブレットを使用します。
<objecttype name="navigation" class="">
<action name="mytab" renderType="GENERAL">
<command class="netmarkets" method="servlet/Navigation?tab=mytab"
windowType="page"/>
</action>

</objecttype>
custom-actionModels.xml のメインナビゲーション操作モデルに操作を追加する
"main navigation" 操作モデルを navigation-actionModels.xml から custom-actionModels.xml にコピーします。
先に作成した操作 "mytab" を操作モデルに追加します。
<!-- Main navigation -->
<model name="main navigation">
<action name="home" type="navigation"/>
<action name="product" type="navigation"/>
<action name="project" type="navigation"/>
<action name="change" type="navigation"/>
<action name="library" type="navigation"/>
<action name=”mytab” type=”navigation”/>
<action name="org" type="navigation"/>
<action name="site" type="navigation"/>
</model>
rbinfo ファイルにエントリを作成する
action.properties ファイルまたは独自の rbInfo ファイルに操作用のローカライズ文字列を作成します。詳細については、Windchill クライアントアーキテクチャの操作フレームワークを参照してください。