The Preference Manager is used for setting up the default behavior of the ORCA1 and SDT tools, and the common Telelogic Tau tools.
This chapter is a reference to the Preference Manager; the functionality it provides, its menus, windows and symbols and a description of the preference parameters.
For a guide to how to use the Preference Manager to customize the behavior of the Telelogic Tau tools, see Managing Preferences.
Figure 67 : The Preference Manager window
|
The items that build up the Preferences Manager window are:
The tree area displays the tools that obey to the preference mechanism in the Telelogic Tau tools and their respective preference parameters. The notation uses a graphical approach featuring a tree with icons symbolizing the various items that are managed by the tool.
Figure 68 : Node in the tree area
|
Each node in the tree represents either a:
The Preference Manager only supports the ORCA- and SDT-specific tools, and the common Telelogic Tau tools. See Customizing ITEX (on UNIX), for information about how to customize ITEX on UNIX. |
(( ))
[]
, i.e. whether it is a company or project or user-defined settingGiven the following line in the Preferences window, with all View Options turned "on":
Figure 69 : A line in the Preferences window
|
The information on the line in Figure 69 should be interpreted as:
The tree is a visualization of the merged preference parameters, supplied from different sources (see Search Order When Reading Preference Parameters), as the Telelogic Tau tools will perceive them. Furthermore, each node in the tree can be collapsed or expanded (see Collapse) in order to reduce or extend the amount of information that is visible, thus facilitating the work with the tool. It is also possible to filter the information that is displayed with respect to various view options (see View Options).
When a preference parameter is modified but not saved, this is indicated by the icon appearance changing from a light color to a gray pattern. The parent tool node and the root node are also marked as dirty when any parameter is changed.
Figure 70 : Nodes marked as dirty
|
The interface section located under the tree view is where values are edited in an Edit Area. The type of Edit Area varies with the type of value selected.
There are different types of preference parameters:
Icon | Edit Area |
---|---|
|
|
|
|
|
Option Menu Textual Preference
|
|
Font Preference (Windows only)
|
|
|
|
|
|
|
|
|
Selecting a parameter and editing its value with the provided UI device changes its value. The parameter's icon is set as dirty (see Dirty Notification).
The menu bar contains the following menus:
The File menu contains the following menu choices:
This menu choice saves the parameters that have been modified in the User's Preference File, on UNIX in $HOME/.sdtpref
, and in Windows in %HOME%\sdt.ini
But, before saving the preference settings, the user will be warned if there are modified preferences that are defined as company or project preferences:
Figure 71 : Attempting to save a modified project or organization parameter
|
Considered the implications before you click Save. |
When the save has been performed the user will be warned that changes will not be in effect before the tools have been restarted.
The menu choice reverts all preference parameters to the currently saved values, as they were defined when starting the Preference Manager. The Revert command requires to be confirmed, in case any preference parameters are modified and have not been saved:
Figure 72 : The Confirm to Revert dialog
|
This menu choice issues a message with information about the preference source for the preference parameters.
Figure 73 : Information about preference sources
|
The message shows three items:
[Company] - <file specifier>
The location of the company / organization preference file
[Project] - <file specifier>
The location of the project preference file
[User] - <file specifier>
The location of the user's preference file.See Preference Files for more information on preference files and search order.
The Edit menu contains the following menu choices:
This command restores the selected parameter to its currently saved value. The menu choice is also available from the pop-up menu.
This command restores the selected parameter to its default value (i.e. factory setting). The menu choice is also available from the pop-up menu.
This command allows to remove a preference parameter from the User's Preference File when saving the file, i.e. Unsave it. The command is available on user-defined parameters only; user-defined parameters are shown with their Value Sources set to [User].
A dialog is displayed following invocation of the command:
|
The View menu contains the following menu choices:
This menu choice is available only if the currently selected object is a tool node. The command expands the subtree starting from the selected tool, making all parameters for that tool visible.
The operation is also available from the pop-up menu and with a double-click.
This command expands the entire tree, thus making all parameter nodes visible.
The operation is also available from the pop-up menu.
This menu choice is available only if the currently selected object is a tool node. The command collapses the parameter nodes belonging to the current tool, leaving only the tool node visible in the subtree.
The operation is also available from the pop-up menu and with a double-click.
This menu choice collapses all tool nodes and hides the parameter nodes. Only the root node and the tool nodes are left visible.
The operation is also available from the pop-up menu
This menu choice issues a modeless dialog, the View Options dialog:
Figure 75 : The View Options dialog
|
The dialog contains the following toggle buttons:
This button controls the presence of the quick buttons.
The tool bar is visible by default.
This option determines whether the Status Bar should be visible or not.
The status bar is by default visible.
If the Filter Button is on, the Tree Area will only show the preference parameters which name contain the text string that is entered in the Filter Field.
Note: The name of a preference parameter consists of a combination of a tool name and of the parameter itself (see Syntax of Preference Files). The filter option compares the text strings without respect to upper or lower case characters. |
By default, no filtering is applied.
This option controls whether the prefix in preference parameters (consisting of the tool name and of an asterisk) should be displayed or not (see Syntax of Preference Files).
Tool names are not displayed by default.
This option determines whether the saved values should be made visible or not. The saved values are the values that are currently stored on the preference files.
Saved values are displayed within one level of parentheses (saved value). See Example 10.
Saved values are displayed by default.
This option determines whether the default values (i.e. factory settings) should be made visible or not.
Default values are displayed within two levels of parentheses ((default value)). See Example 10.
Default values are not displayed by default.
This option determines whether the Preference Source for the parameters should be displayed or not. A preference parameter may be retrieved from any of the following sources:
Source values are displayed within brackets [] and are not visible by default.
This option determines whether an informative text should be displayed or not. The text is purely informational and provides an additional description of the function of the preference parameter. See Example 10.
Parameter descriptions are not displayed by default.
This menu choice opens a dialog where you may set the scale used in the preferences window. The scale may be set between 20% and 800%. 100% is the default.
The Tools menu contains one menu choice:
The contents of the popup menu depends on which node you click on.
See Collapse All. |
|
See Expand All. |
See Collapse. |
|
See Expand. |
See Set Saved Value. |
|
See Set Default Value. |
|
Help |
Request on-line help for the preference parameter in question. |
Apart from the general keyboard accelerators, as described in Keyboard Accelerators, the following accelerators can be used in the References window:
All of the preference parameters along with their values (exception made for the default settings which are programmed into the Telelogic Tau tools) are stored on dedicated files, the preference files. The preference files may be edited with any text editor since the information is stored in textual form.
The Preference Manager manages these files and provides the graphical user support for customizing the Telelogic Tau tools in an easy way.
Note: ITEX cannot be customized by preferences. Instead, see Customizing ITEX (on UNIX). |
The following files build up the preference environment:
The following items constitute the various sources for preference parameters. The source identifier may be made visible with the Value Sources options in the View Options dialog.
Source Identifier | Source Description |
---|---|
[User] |
|
[User (No Save)] |
The User's Preference File, will be removed from the user's preference file next time the parameters are saved |
[Project] |
|
[Company] |
|
[Default] |
The default factory Settings. |
This file stores the preferences parameters that a user has modified. The file is created / updated as a result of the Save command.
The user's preference file is identified on UNIX by:
$HOME/.sdtpref
and in Windows by:
%HOME%\sdt.ini
This file stores the preferences values that are to be applied to a specific instance of a project where the Telelogic Tau tools are used.
The project preference file is identified on UNIX by:
$SDTPREF/.sdtpref
and in Windows by:
%SDTPREF%\sdt.ini
This file stores the preference values that are common for an entire company or organization and therefore should be applied to all projects and users of the Telelogic Tau tools.
The company preference file is identified on UNIX by:
$telelogic/.sdtpref
and in Windows by:
<SDT Installation directory>\sdt.ini
These are the settings that are defined by default in the Telelogic Tau tools. The factory settings will be used whenever a preference parameter could not be found in the Preference Files.
A line in the preference file contains two items:
The syntax is:
tool*parameter: value
Print*Scale:100Meaning that the scale when printing is 100%.
The order of appearance of the parameters in a file is of no significance.
This section discusses how the Telelogic Tau tools read the preference parameters.
When a tool starts, it will automatically (i.e. no user-interaction is required) retrieve the preference values in an incremental way, following the order of search described below and illustrated in Figure 76 and Figure 77:
SDTPREF
is set:$SDTPREF/.sdtpref
(on UNIX), or %SDTPREF%\sdt.ini
(in Windows) exists, that file is read incrementally2 as the project preference file. $telelogic/.sdtpref
(on UNIX) or <
SDT Installation directory>\sdt.ini
(in Windows).HOME
environment variable is set, and $HOME/.sdtpref
(on UNIX) or %HOME%\sdt.ini
(in Windows) exists, that file is read incrementally as the user's preference file. HOME
is not set, the preference file in the directory from which Telelogic Tau was started is read incrementally as the user's preference file.The method above allows to configure an Telelogic Tau tool environment by defining some preferences as company-wide or project-wide, while allowing users to customize other preferences.
Figure 76
:How the Telelogic Tau tool searches for
preference parameters (on UNIX)
|
Figure 77
: How the Telelogic Tau tool searches for
preference parameters (in Windows)
|
When a preference parameter is saved, it is always stored as a user-defined preference parameter in the user's preference file, i.e. $HOME/.sdtpref
(on UNIX), or %HOME%\sdt.ini
(in Windows), if HOME
is set. If HOME
is not set, the preference parameters are stored in a preference file in the directory from which Telelogic Tau was started.
The above implies that modifying a parameter that was originally defined as a project or organization parameter, the parameter will from now on be considered as a user-defined parameter. The user is however notified about this (see Figure 71).