Introduction |
Everything Understand for Ada knows about a given entity can be learned using the Information Browser. The information is represented via a tree. The tree can be expanded selectively or in bulk.. Each branch of a tree follows a relationship of the entity. Each terminating item (leaf) of a tree corresponds to some information about that entity. As you drill down relationships you can change entities you are learning about. Each time you change entities, that is remembered in the Information Browser history for quick backtracking.
Drilling down the tree works as expected (mostly). To expand a tree, click on the +sign. To close the tree click on the -sign
There are a few tricks however....
Right clicking on either a + or - sign in the tree brings up a collapse/expand menu:
If the tree node is currently closed, you will be presented with the option to Open or Open All. If the tree node is currently open, you will be presented with the options to Close, Close All, or Open All.
Open All and Close All will operate on all levels of the selected branch.
To Open or Close all branches, right click in the white space of the Information Browser and choose Open All Branches or Close All Branches.
See Sharing Information Browser Info (Printing and Copying/Pasting for details on the Print and Save As options.
Certain relationships that you always use can be set to "pre-expand" on loadup. For instance, "+WithBys" can be set to always expand. Another mode is for the Information Browser to "remember" how you had a tree expanded the last time you looked at the kind of information. Set these options from the Options->Preferences Dialog, Info Tree tab:
Everything shown in the Information Browser can be Printed, Saved as a Text File, or Copied/Pasted as Text information into another application. The branches of trees are represented by tab indents in the text.
Printing or Saving - Right click on any whitespace in the Information Browser to get this menu:
Copying/Pasting - Mark text as is standard to your windowing system (Windows or X11). Then right click on the marked area:
In general, if you double click on an Ada entity in an Understand informational window (Information Browser or Filter Area) then the Ada Spec for the source to that entity will be loaded into the Document Area.
Another way to visit source, this time from any Ada entity you see in the Understand for Ada GUI, is the Right Click Menu. An Ada entity's Right Click Menu will contain a menu item for visiting each of it's declaration locations (Spec, Body, Separate):
The bottom portion of the Information Browser always contains a list of everywhere the entity is referred to in the analyzed source code:
As you explore your code with Understand for Ada you can go a lot of places very quickly. Often you want to backtrack along your path to explore a new path. To help you do this each Information Browser, Hierarchy, Declaration, and Source window contain full history of what they have done. The Information Browser history can be found in the bottom left corner:
Scientific Toolworks, Inc. http://www.scitools.com Voice: (802) 763-2995 Fax: (802) 763-3066 support@scitools.com sales@scitools.com |