Properties files contain two types of lines; comments and tag-value pairs.
A comment line starts with the hash character, as shown in the following example:
# This is a comment, it extends to the end of the line.
A tag-value pair consists of a tag name and the value assigned to it, separated by an equals sign. Any white space before or after the equals sign is ignored. A tag can contain any non-space value except an equals sign or a colon. A value can contain any character except a line terminator. A tag-value pair is shown in the following example:
viewerInitialTitle = NGEN Presentation Client
Properties files containfollowing two main types of information:
Plain strings are simple text strings that contain the descriptions for labels, button titles, window titles, and menu names. For example, to change the initial name of the LINCView main window to Entry Point , use:
# The initial main window caption. viewerInitialTitle = Entry Point
Format strings allow you to insert information into a string. For example, to display the name of an Ispec as the window name, use Java format strings as shown in the following lines:
# The information appended to the main window caption when a server connection is # established and an ispec is displayed. # 0 - the caption if it exists followed by " - " # 1 - the application name # 2 - the ispec name. viewerTitleSuffix = NGEN Presentation Client: {0} ({1}) - [{2}]
In this example, when the Presentation Client displays the CUST Ispec, the title of the window is NGEN Presentation Client: CUST.
Two further examples are as follow:
To remove the System menu from the menu bar, locate the following text in the properties file:
#System menu #The name of the system menu. systemMenuName = System
Delete the System value for the systemMenuName tag to leave the following text:
#System menu #The name of the system menu. systemMenuName =
To remove the entire menu bar, you must perform the same action as described for removing the System menu, for each menu on the menu bar. This results in the following text for each menu:
#File menu #The name of the file menu. fileMenuName = #Edit menu #The name of the edit menu. editMenuName = #View menu #The name of the view menu. viewMenuName = #System menu #The name of the system menu. systemMenuName = #Options menu #The name of the options menu. optionsMenuName = #Help menu #The name of the help menu. helpMenuName =
You do not have to change any of the text for the menu items.