The Index Viewer shows all definitions of SDL entities in a system and where they are used. The Index Viewer uses cross reference files produced by the Analyzer.
In previous versions of Telelogic Tau, the Message Sequence Chart Editor could also produce listings of definitions and references from an MSC. These older listings are also supported by the Index Viewer.
This chapter contains a reference manual to the Index Viewer; the functionality it provides, its menus, windows and symbols.
The SDT Analyzer has the ability to generate files containing SDL cross references. See the Analyzer command described in Set-Xref, and the Organizer's Analyzer option described in Generate a cross reference file. These files use a textual format that is human readable; the purpose of the Index Viewer is to provide a means to take advantage of this information in the graphical environment of SDT. SDL icons are used when displaying the contents of the files in a graphical way.
In previous versions of Telelogic Tau, the Message Sequence Chart Editor featured the generation of MSC cross references. These entities had properties that were similar to SDL cross references. Where possible, a direct mapping from MSC to the corresponding SDL concept were made. A few concepts were added so that all information of interest could be extracted from an MSC.
MSC icons identify the various MSC entities graphically, and are supported for backward compatibility reasons.
Each type of SDL entity has a unique name and icon used in the Index Viewer. The different SDL diagram types use the same icon and type name as in the Organizer's Main window. For other types of entities, the following icons and names are used:
Each type of MSC entity has a unique name and icon used in the Index Viewer. The MSC diagram uses the same icon as in the Organizer's Main window. For other types of entities, the following icons and names are used:
|
Unknown symbol type. Used for diagrams when the type of the diagram for some reason could not be determined. |
|
All entities defined in the system are listed in alphabetical order in the Index Viewer window. For each entity, there may be a list of uses of the entity. The general characteristics of the window is described in User Interface and Basic Operations.
The window contains a list of all definitions of entities in the current SDL system or the current MSC diagram. The first line in the list gives the name of the current cross reference file. The entities are sorted alphabetically according to either name, or type and name.
For each entity, the following information is presented:
Figure 420 : The Index Viewer window
|
To double click on a defined entity in the window is the same operation as Show Definition in the Tools menu (see Show Definition). If there are several definitions associated with the entity, one of them is selected. If you double click again, another definition is selected. The list of definitions associated with the entity is traversed in a circular pattern.
To double click on a use in the window is the same operation as Show Use in the Tools menu (see Show Use). If there are several uses associated with the symbol, one of them is selected. If you double click again, another use is selected. The list of uses associated with the reference symbol is traversed in a circular pattern.
There is a fast search operation available when the Index Viewer drawing area has the input focus. Just start typing on the keyboard, and the list of entities will be searched from the top. The first matching entity will be selected.
Note that the fast search operation will only match if what you type matches the beginning of the text for an entity. For instance: If you type "Ga", you will find the entity Game_On if the entities are sorted with name first, while you will not find it if you type "On". The normal Search operation does not have this restriction.
The search string used by the fast search operation will be reset whenever any other operation than the fast search operation is performed. For instance, if you have typed "Ga" and the index viewer has found the entity Game_On, and you select another entity and start typing again, then the search string used for the search operation will not contain the initial "Ga" characters (and the fast search operation will start searching from the top of the list).
It is possible to use the delete character to correct any spelling mistakes. You can see what you have typed in the message area.
The File menu contains the following menu choices:
The View menu contains the following menu choices:
Sets options for which parts of the Main window to show. The dialog controls whether to show the tool bar and the status bar.
Determines the appearance of each entity in the window.
Figure 421 : The Index Options dialog
|
The following alternatives are available:
Determines which entity types to show/hide in the entity list. A dialog is opened with a sorted list of all entity types found in the current cross reference file:
Figure 422 : The Filter Entities dialog
The figure shows some entity types for an SDL system. See MSC Icons for a list of MSC entities.
|
It is possible to have several entity types selected at the same time in the list. Each selected entity type is added to the previous selection. Selecting an already selected entity type deselects it and removes it from the selection. The dialog remembers the selections made between invocations of the dialog.
An SDT preference, FilterTypes can be set to an initial list of entities to hide whenever the Index Viewer is opened. See FilterTypes.
Determines which uses to show/hide. The dialog works in the same way as the dialog for Filter Types. The associated SDT preference is named FilterUses.
Figure 423 : The Filter Uses dialog
|
Hide/show entities based on which diagram they are defined in. The dialog works in the same way as the dialog for Filter Types. The most common use of this operation is to hide definitions from the SDL predefined package. The associated SDT preference is named FilterDiagrams.
Figure 424 : The Filter Diagrams dialog
|
Issues a dialog where the scale for the Tree window may be set.
The Tools menu contains the following menu choices:
Searches for a visible text in the entity list shown in the Main window.
Figure 425 : The Search dialog
|
If the search reaches the end of the trees, you are asked whether to continue the search from the first tree.
If the text cannot be found among the visible information, you are informed in a confirmation dialog.
Searches again for the same text as in the latest search. The behavior is the same as described in Search.
Opens an editor containing the specified definition of the entity selected in the entity list. The diagram symbol containing the definition becomes selected in the editor.
The name and behavior of this menu choice depends on the number of existing definitions for the selected entity:
Opens an editor, showing the selected use of an entity. The Show Use operation works in the same way as the Show Definition operation.
The following tables lists the menu choices in the window's popup menus and a reference to the corresponding menu choice in the menu bar.
Search |
|
Search Again |
Search |
|
Search Again |
|
Show Definition |
Show Definition. The same menu choice variations apply. |
Apart from the general keyboard accelerators, the following accelerator can be used in the main window:
Accelerator | Reference to corresponding command |
---|---|
Ctrl+E |
The following quick button is special to the Index Viewer window. The general quick buttons are described in General Quick-Buttons.
|
Toggle Order
Switches the entity sort order between name and type and name. |