SBROWSER(1) — USER COMMANDS
NAME
sbrowser -SunView interface to Sun SourceBrowser
SYNOPSIS
sbrowser
DESCRIPTION
sbrowser is the SunView interface to Sun SourceBrowser, a source-level code browser. To use SourceBrowser, you issue queries which instruct SourceBrowser to find all occurrences of the symbol you have identified. These occurrences are called matches.
To turn on SourceBrowser, add the -sb option to the compiler command line.
To issue a query, select the identifier you want to search for and click left on the Query button. The identifier can be an identifier you have typed in the Scratch field or an identifier in the SourceBrowser subwindow or in another open window. After you have issued the query, you use SourceBrowser menu commands to display different matches found by the query and to move between queries.
SourceBrowser includes two commands for narrowing a search. The Filter command is used to search for symbols based on how they are used in a program. For example, you could limit your search to declarations of variables. The Focus command limits your search to instances of specific classes of code, such as particular programs, functions, or libraries.
MENU COMMANDS AND BUTTONS
SHOW menu commands
Selected Match
Makes the selected match in the match subwindow the current match and displays the appropriate line of code in the source window.
This Match
Displays the current match in the source window.
Version
Displays SourceBrowser’s current version number.
ERASE menu commands
This Query
Erases the current query.
This Match
Erases the current match.
All Queries
Erases all active queries.
PREVIOUS menu commands
Previous Match: This Query
Makes the previous match found by the active query the current match.
Previous File
For the current query, makes the last match that occurs in the previous file that contains a match the current match.
Previous Function
For the current query, makes the last match that occurs in the previous function that contains a match the current match.
Previous Match: Any Query
Makes the previous match in the source subwindow the current match.
NEXT menu commands
Next Match: This Query
Makes the next match found by the active query the current match.
Next File
For the current query, makes the first match that occurs in the next file that contains a match the current match.
Next Function
For the current query, makes the first match that occurs in the next function that contains a match the current match.
Next Match: Any Query
Makes the next match in the source subwindow the current match.
FOCUS menu and FOCUS panel
The Focus menu contains classes of code appropriate to the language of the source code you are browsing. After choosing an item from the Focus menu, all of the available items from the class of code you have selected are displayed in the Focus panel. You use the Activate and Deactivate menus to activate the items you want to use in your focused query.
FILTER button and FILTER panel
Clicking left on the Filter button displays the Filter panel. The Filter panel contains items such as declarations, references, and strings. The content of the Filter panel changes depending on the languages of the source code you are browsing. Select the items you want to use as your filter. Then conduct your query. When you make a different active query the current query, the settings in the Filter panel change to reflect the settings that were used to conduct that query.
QUERY button
Clicking left on the Query button causes SourceBrowser to search for the selected symbol.
UPDATE button
Clicking left on the Update button causes SourceBrowser to update the Index file. This button only appears if you have set the Keep Database Index Updated item in the property sheet to no.
SEE ALSO
Sun SourceBrowser Reference Manual
Sun Release 4.0 — Last change: 10 October 1989