Table of Contents Previous Chapter 26 The Search List Manager

26 The Search List Manager

The Search List Manager is the SDT-3 tool that handles SDT-2 search lists. Search lists are optional in SDT-3, but are still supported for backward compatibility reasons. The Search List Manager replaces the FileViewer tool in SDT-2, even though the functionality differs slightly. This chapter contains a reference manual to the Search List Manager; the functionality it provides, its menus, windows and symbols.

The Search List File

The Search List Manager operates on search list files. A search list file contains an ordered list of directories in which diagrams making up a system are stored. Search lists were in SDT-2 needed for making file bindings of diagrams. They are optional in SDT-3, since diagrams always have an explicit file binding in the Organizer. The user may at any time re-bind the diagrams according to a search list, but this operation is performed in the Organizer. Operations in the Search List Manager do not directly affect the file bindings in the Organizer.

The directories listed in a search list file are by the Search List Manager scanned for SDT diagram files. Files that are recognized contains an SDL/MSC diagram or an SDL Overview diagram. The following diagram types are supported:

The Main Window

The Search List Manager has a single window, the Main window. It contains the following parts:

The general characteristics of a Main window are described in chapter 21, The SDT Graphical User Interface.

-----------------------------------------------------------------
Note:                                                              
If the currently opened search list has been modified, each text   
shown in the status bar is prefixed by a * character.              
-----------------------------------------------------------------
When the Search List Manager is started, it opens and reads a default search list file. The default file name is sdt.ssl, but this could be changed with a preference value. If the search list file exists and can be read, its contents are shown in the drawing area of the Main window.

Figure 412 : The Main Window. 
-----
(fig)  
       
-----

Drawing Area

The drawing area shows the structure of a search list as an hierarchical tree. The tree structure is displayed as an indented list of icons, with additional textual information on each line (see Figure 412). The user can change the amount of information displayed in the tree with the menu choice View Options in the View menu.

Tree Structure Levels

There are three possible levels in the structure:

--------------------------------------------------------------------------------
(fig)  ·  Search list file                                                        
       The top level is a search list file. It has a special file icon with the   
       file name displayed to the right.                                          
(fig)  ·  Directories                                                             
       The second level is the directories specified in the search list. They     
       have a special folder icon. To the right of the icon, the logical name     
       and the physical file name of the directories are displayed by             
       default. The first directory in the list is always the current workdir,    
       i.e. the directory where the search list file resides.                     
       A directory icon is marked invalid if the directory does not exist or      
       is unaccessible. An invalid directory is recognized by having all its      
       text displayed in italics.                                                 
--------------------------------------------------------------------------------

The View Title

Above the tree structure in the drawing area, the view title is displayed. It is a text indicating what view is currently shown in the tree. The view title could be one of the following:

Command Execution on Marked Diagrams

In the Search List Manager, it is possible to execute an arbitrary operating system command on some or all of the diagrams. The diagrams affected by the command are the ones that have been marked especially for this. Only diagrams that are visible in the tree can be marked.

A marked diagram has a "*" in front of the diagram name in the tree. The marks are cleared whenever the view mode is changed, the tree structure is changed or updated, or a diagram filter is applied.

The command execution is a two step operation. First a range of diagrams are marked and then a command is applied on each of the marked diagrams.

The marking and command execution is performed by commands in the Diagram Menu. For more information, see "Mark" on page 1386 and "User Command" on page 1387.

Double Clicks

Double clicking on an object in the tree structure invokes a default operation:

----------------------------------------------------------------
Object            Menu command reference                          
----------------------------------------------------------------
Search list file  "First Occurrence" on page 1381                 
Directories       "View Directory / Collapse Directory" on page   
                  1381                                            
Diagrams          "All Occurrences" on page 1382                  
----------------------------------------------------------------

Quick Buttons

The following quick button is special to the Main window. The general quick buttons are described in "Quick Buttons" on page 1035.

--------------------------------------------------------------------------------
(fig)  Refresh                                                                    
       Clears all diagrams in the tree and re-reads the search list directories   
       from the search list file.                                                 
--------------------------------------------------------------------------------

The Menu Bar

The File Menu

Figure 413 : The File Menu. 
-----
(fig)  
       
-----

New

Clears the drawing area and creates a new, empty search list, named "Untitled." Only the top level of the tree is shown.

If a currently opened search list was modified, the user gets the possibility to save it first:

Figure 414 : The Save Before Dialog. 
-----
(fig)  
       
-----

Open

Opens an existing search list file.

If the currently opened search list was modified, the user gets the possibility to save it first. The same type of dialog as for the New command is opened (see "New" on page 1375).

The Open dialog is a Standard File Selection Dialog with the file name filter set to *.ssl.

If the specified search list file is successfully opened, the former contents of the drawing area is replaced with the new search list structure. The search list file and the directories it contains are shown, but not the diagrams in the directories.

Save

Saves the current search list under the existing file name. The menu choice is dimmed if:

Save As

Saves the current search list under a new file name.

A Standard File Selection Dialog is opened with the default file name set to the name of the current search list and the file name filter set to *.ssl.

If the specified file already exists, a confirmation dialog asks the user whether to overwrite the file.

Figure 415 : The Save As Confirmation Dialog. 
-----
(fig)  
       
-----

Delete

Deletes an existing search list file from the file system.

A Standard File Selection Dialog is opened. The currently opened search list cannot be deleted; if it is specified in the dialog, a message box with a warning is opened and the delete operation is aborted.

The user must confirm this operation with a dialog:

Figure 416 : The Delete Confirmation Dialog. 
-----
(fig)  
       
-----

Print

Prints the contents of the drawing area. This menu choice starts the Print Utility; see the chapter "The Print Utility" on page 1439 for more information.

Exit

Exits the Search List Manager.

If the currently opened search list was modified, the user gets the possibility to save it first. The same type of dialog as for the New command is opened (see "New" on page 1375).

Figure 417 : The Save Before Exit Confirmation Dialog. 
-----
(fig)  
       
-----
If no information was modified, the Search List Manager exits without confirmation.

The Edit Menu

The commands in the Edit menu operates on a selected directory in the tree structure. If no directory is selected, these commands are dimmed.

Figure 418 : Edit Menu. 
-----
(fig)  
       
-----

Add Directory

Adds a directory to the search list. It is placed after the currently selected directory.

A Standard Directory Selection Dialog is opened. The logical directory name is extracted from the selected directory path and is set to the name of the last directory in the path. Both the logical name and the directory path must be unique in the search list. If a match is encountered, the user is notified via a message box, and the new directory is not added.

The diagrams in the new directory are not shown.

Delete Directory

Deletes the selected directory from the search list. The workdir cannot be deleted; if it is selected, this menu choice is dimmed.

The user must confirm this operation with a dialog:

Figure 419 : The Delete Directory Confirmation Dialog. 
-----
(fig)  
       
-----

Change Directory

Changes the currently selected directory to a new one. The workdir cannot be changed; if it is selected, this menu choice is dimmed.

The directory path is edited in the following dialog:

Figure 420 : The Change Directory Dialog. 
-----
(fig)  
       
-----

Change Logic Directory

Changes the logical name of the currently selected directory. The logical name of the workdir cannot be changed; if it is selected, this menu choice is dimmed.

The logical name is edited in the following dialog:

Figure 421 : The Change Logic Directory Dialog. 
-----
(fig)  
       
-----

The View Menu

Figure 422 : View Menu. 
-----
(fig)  
       
-----

View Directory / Collapse Directory

This menu choice toggles between two names depending on the state of the selected directory. The menu choice is dimmed if no directory is selected or if the selected directory is marked invalid.

View Directory displays the diagrams in the selected directory according to the diagram filter settings.

Collapse Directory collapses the selected directory, i.e. all diagrams displayed in the directory are cleared.

All Directories

Displays the diagrams in all directories in the search list according to the diagram filter settings. This menu choice is dimmed if a directory or a diagram is selected.

First Occurrence

Displays only the first occurrence of each diagram in the search list according to the diagram filter settings. This menu choice is dimmed if a directory or a diagram is selected.

The directories are searched in the order they appear in the search list. Each diagram is placed in the tree structure under the directory where it was first found. If all diagrams in the search list exist in one directory only, this command is identical to All Directories above.

The tree is cleared from existing diagrams before the tree is updated.

All Occurrences

Displays all occurrences of the selected diagram found in the directories in the search list. This menu choice is dimmed if a diagram is not selected.

Only the occurrences of the selected diagram are displayed in the tree after this operation. The tree is cleared from existing diagrams before the tree is updated.

View Options

Sets options for controlling the appearance of the Main window and the tree structure in the drawing area.

The options are set in a modeless dialog, i.e. the Search List Manager can continue working without waiting for the dialog to be closed.

Figure 423 : The View Options Dialog. 
-----
(fig)  
       
-----
The items in the View Options dialog is grouped into the following three sections. The figure above shows the default settings.

Diagram Filter

The diagram filter options controls the type and names of the diagrams to be shown in the tree, once diagrams are displayed. These options are dimmed if the current view operation is All Occurrences.

Show Sections

The Show Sections options control which parts of the Main window to show.

Show Diagram Attributes

The Show Diagram Attributes options control which attributes to show for the diagrams in the tree. Some of the attributes also apply to directories and the search list file. The attributes appear as tab separated text strings in the order listed below.

Diagram Buttons

Set Scale

This menu choice sets the scale used in the Search List Manager window.

The scale is set using a modal dialog:

Figure 424 : The Set Scale Dialog. 
-----
(fig)  
       
-----

The Diagram Menu

Figure 425 : Diagram Menu. 
-----
(fig)  
       
-----

Info

Shows details about the selected diagram in a dialog. This menu choice is dimmed if no diagram is selected.

When the dialog is opened, the user can select another diagram in the tree. The dialog is then immediately updated.

Figure 426 : The Info Dialog. 
-----
(fig)  
       
-----
The dialog displays the following information:

Mark

Specifies how marking of diagrams should be done. For more information on marking, see "Command Execution on Marked Diagrams" on page 1374.

The marking method is selected in a dialog:

Figure 427 : The Mark Dialog. 
-----
(fig)  
       
-----

User Command

Executes an operating system command on the marked diagrams. This menu choice is dimmed if no diagrams are marked.

The command to execute is specified in a dialog:

Figure 428 : The User Command Dialog. 
-----
(fig)  
       
-----
The following references to diagram attributes can be specified in the command:

Clicking OK executes the specified command, including the above references, on each of the marked diagrams. User input is disabled while the command is executed.

Text output from the executed command is displayed on standard output and standard error.

---------------------------------------------------------
Note:                                                      
The command must not involve any requests for user input.  
---------------------------------------------------------
The marked diagrams are still marked after the command has been completed.

Example 32 : User Command in Search List Manager  
To copy marked diagrams to a backup directory, the following command could be specified:

cp %d/%f /home/user/backup
  

Edit

Starts an SDL or MSC Editor on the selected diagram. This menu choice is dimmed if no diagram is selected.

The Tools Menu

Figure 429 : Tools Menu. 
-----
(fig)  
       
-----

Show Organizer

Raises the Organizer's Main window.

Popup Menus

The following tables lists the menu choices in the Main window popup menus and a reference to the corresponding menu choice in the menu bar.

On the Search List File

--------------------------------------------------
First Occurrence  "First Occurrence" on page 1381.  
All Directories   "All Directories" on page 1381.   
--------------------------------------------------

On a Directory

-------------------------------------------------------------
View Directory /
"View Directory / Collapse Directory" on Collapse Directory page 1381. Add Directory "Add Directory" on page 1379. Delete Directory "Delete Directory" on page 1379. Change Directory "Change Directory" on page 1379. Change Logic "Change Logic Directory" on page 1380. Directory -------------------------------------------------------------

On a Diagram

------------------------------------------------------
All Occurrences  "All Occurrences" on page 1382.        
Info             "Info" on page 1385.                   
Mark / UnMark    Marks the diagram. If it already was   
                 marked, the mark is cleared. 
"Mark" on page 1386. Edit "Edit" on page 1388. ------------------------------------------------------

On the Main Window Background

-------------------------------------------------------
View First Occurrence  "First Occurrence" on page 1381.  
View All Directories   "All Directories" on page 1381.   
View Options           "View Options" on page 1382.      
-------------------------------------------------------
This page intentionally left blank

 
Table of Contents Next Chapter