Using SoftBench Class Graph/Editor

Editing C++ Structures with SoftBench Class Graph/Editor

database.

Using SoftBench Class Graph/Editor with Other SoftBench Editors

As you interact with SoftBench Class Graph/Editor, it immediately writes each change you make to the appropriate source files. SoftBench Class Graph/Editor maintains an "undo" list so that you can reverse changes even though they have been written to disk.

If you view the sources in any SoftBench tool, your source view is updated each time you make a change in SoftBench Class Graph/Editor. If you change the file in one of the SoftBench text editors, SoftBench Class Graph/Editor detects the change and discards its "undo" list. This prevents SoftBench Class Graph/Editor from damaging the source changes you made in another editor. Select the Update Graph button to display the new changes in SoftBench Class Graph/Editor.

Because of this close interaction with the SoftBench editors, it can be very productive to use SoftBench Class Graph/Editor in conjunction with an editor. You are not forced to use only SoftBench Class Graph/Editor to make C++ class edits; you can use your editor to make arbitrary text changes (such as adding comments or entering non-class code) in the natural flow of your work.

Synchronizing Editor Views and the Static Database

SoftBench Class Graph/Editor uses the Static database for its view onto your C++ source. If no Static database exists for the current project (or in the current directory for standalone mode), SoftBench Class Graph/Editor requests one to be generated after you make your first edit.

When you edit using SoftBench Class Graph/Editor, you make changes to the C++ source files. SoftBench Class Graph/Editor then triggers an update of the Static database to reflect the new source code.

If you make changes using other editors, you may want to force an update of the Static database to ensure SoftBench Class Graph/Editor displays the current state of your code. To do this, choose "File: Analyze File Set" from the main SoftBench Static Analyzer window, and select the Update Graph button in SoftBench Class Graph/Editor when the file set is updated.

If you do not force an update, SoftBench Class Graph/Editor still checks

136

Chapter 5

Page 136
Image 136
HP UX SoftBench Software manual Synchronizing Editor Views and the Static Database, 136