Tool Mentor: Modifying the TreebrowserPurposeThis tool mentor describes how to modify the treebrowser in the Rational Unified Process. OverviewTo modify the treebrowser: Understand the Treebrowser and the tree.dat file
|
| Files | Comments |
| applet/tree.dat | defines the structure of the left frame treebrowser. If you want to change the tree, you edit the tree.dat file. |
| applet/orytree.htm | is where the treebrowser applet is "declared". If you want to change the applets layout, etc. you do it here. |
Each row in the tree.dat file consists of six fields, separated by a "¤". For example, a link to a page within the Rational Unified Process folder structure:
| 0¤ | Glossary¤ | ../process/glossary.htm¤ | ¤ | bookc.gif¤ | booko.gif¤ | f¤ |
| level in the tree |
title | path relative to tree.dat | target frame |
closed icon | open icon | expanded ('t') or not ('f') |
and an example of a link to a page outside the Rational Unified Process folder structure. The target-frame field is set to "_blank" to open a new web browser window.
| 0¤ | Rational¤ | http://www.rational.com¤ | _blank¤ | bookc.gif¤ | booko.gif¤ | f¤ |
| level in the tree |
title | path relative to tree.dat | target frame |
closed icon | open icon | expanded ('t') or not ('f) |
See Treebrowser documentation for details.
For a detailed explanation of the tree.dat file, see "The Data File", in the treebrowser documentation.
An easy way to modify the Rational Unified Process is to add links to your own material in the treebrowser.
For example, the beginning of the tree.dat file in the Rational Unified Process looks as follows:
| images¤ 0¤Introduction to the Rational...¤../process/ovu_proc.htm¤ ¤folderc.gif¤foldero.gif¤f¤ 1¤Introduction Manual¤../manuals/intro/im_about.htm¤ ¤folderc.gif¤foldero.gif¤f¤ 2¤What is the RUP?¤../manuals/intro/im_what.htm¤ ¤bookc.gif¤booko.gif¤f¤ 2¤Process Architecture¤../manuals/intro/im_prarc.htm¤ ¤bookc.gif¤booko.gif¤f¤ ... ... |
If you want to entries in the treebrowser you add new rows in the tree.dat. For example, if you want to add an entry at the top-level to "Our Own Process" and a link to a page "Our Design Guidelines" one level below, the tree.dat would look as follows:
| images¤ 0¤Our Own Process¤../our_process/index.htm¤ ¤folderc.gif¤foldero.gif¤f¤ 1¤Our Design Guidelines¤../our_process/desguide.htm¤ ¤fbookc.gif¤booko.gif¤f¤ 0¤Introduction to the Rational...¤../process/ovu_proc.htm¤ ¤folderc.gif¤foldero.gif¤f¤ 1¤Introduction Manual¤../manuals/intro/im_about.htm¤ ¤folderc.gif¤foldero.gif¤f¤ 2¤What is the RUP?¤../manuals/intro/im_what.htm¤ ¤bookc.gif¤booko.gif¤f¤ 2¤Process Architecture¤../manuals/intro/im_prarc.htm¤ ¤bookc.gif¤booko.gif¤f¤ ... ... |
Then the Rational Unified Process online would look as follows:

When you add links to pages outside the Rational Unified Process structure, we recommend that these pages are opened in a new web-browser window. (If you do not make the page to be displayed in a new web-browser window it will be displayed in the main frame of the Rational Unified Process online, which may cause the navigation buttons in the Rational Unified Process to create JavaScript errors. The reason for this is that the navigation buttons must have read access to the page.)
<a href="another page" target="_blank">another pages<a>
![]()
|
|