Customizing Tabs
Only in DbVisualizer Pro
This feature is only available in the DbVisualizer Pro edition.
You can change the labels of tabs, and give the tabs of a connection a color or border, so that you can tell tabs apart more easily.
Changing the tab label
Tab labels are made from a pattern. To change the pattern, open Tools → Tool Properties and select the General / Tabs category. For Object View, SQL Commander and Result Set tabs, you can also right-click the tab header and select Modify Tab Labelling.
Select one of the predefined patterns, or edit it using these variables:
| Variable | Tabs | Description |
|---|---|---|
${connectionname} | All | The connection name. |
${index} | All | A unique number for the tab in the tab group. |
${userid} | All | The user name of the connection. |
${filename} | SQL Commander | The script file name, or "Untitled" if no file is loaded. To show something else, use the nofile option, for example ${filename\|nofile=No File}. To show nothing, use ${filename\|nofile=}. |
${longfilename} | SQL Commander | The full path of the script, or "Untitled" if no file is loaded. The nofile option works as for ${filename}. |
${objectname} | Object View | The object name. |
${objecttype} | Object View | The object type, such as Table or View. |
${catalog} | Object View | The database of the object, if any. |
${schema} | Object View | The schema of the object, if any. |
${editorindex} | Result Set | The number of the SQL Commander tab. |
${rows} | Result Set | The number of rows in the result set. |
${sql} | Result Set | The SQL statement that produced the result set. |
${table} | Result Set | The table the result set comes from, or the first one if there are several. |
${time} | Result Set | The time when the result set was produced. |
${vendor} | Result Set | The database vendor name. |
To change the label of a single Object View, SQL Commander or Result Set tab, right-click its header and select Rename Tab.
Using tab colors and borders
To tell the tabs of a connection apart from others, give the connection a background color, a border, or both. Set them in the Properties tab of the connection, in the Color and Border category. If you set them in Tools → Tool Properties, in Database / <database type> / Color and Border, they apply to all connections of that database type.
For the border, select one of the predefined styles, or a small image file.
The color and border are also shown for the connection in the Databases tab, and in the connection list in SQL Commander.
