Using SoftBench Editors

Calling Other SoftBench Tools from the Editors

Calling Other SoftBench Tools from the Editors

One of the most useful benefits of having the vi and XEmacs editors encapsulated and integrated into SoftBench is that you can call other tools from within the editors, and you can call the editors from other tools.

The default editing mode is "C" code, and changes based on the filename's suffix. The suffixes .C, .cxx, .cpp, .Cxx, .cc and .H cause the editors to switch to C++ mode.

Compiling a Program File

Once you finish editing and saving the changes to a program file (save the file by choosing "File: Save"), you can compile the file while in an editor by choosing "File: Compile File".

See “Compiling Instead of Building” on page 73 for information comparing compiling to building.

Building a Project

Once you finish editing and saving the changes to your program file, (save the file by choosing "File: Save"), you can build the current project by choosing "File: Build Project".

See “Compiling Instead of Building” on page 73 for information comparing compiling to building.

Accessing SoftBench Static Analyzer from the Editor

You can initiate static analysis directly from the editor. For example, you can generate a list of all calls to a particular variable by selecting a token (dragging with the left mouse button or double–clicking) and choosing "Static: References". If no token is currently selected, then SoftBench Static Analyzer uses the first token following the text cursor in the "Static: References" operation.

130

Chapter 4

Page 130
Image 130
HP UX SoftBench Software Calling Other SoftBench Tools from the Editors, Compiling a Program File, Building a Project, 130