Imagix Corp

Grep Tool


prev screen
index of sample screens
next screen

sample screen - Imagix 4D - reverse-engineering and documentation tool

prev screen
index of sample screens
next screen
The Grep Tool, based on the Unix grep command, enables you to locate text strings in your source code. Running grep from inside Imagix 4D rather than from a shell offers several advantages. First, you're able to automatically scope your grep search. Second, the results of the search are organized for you so you can see the results in context. Third, the listing of the grep results enables you to quickly and easily navigate to the source files containing the strings.

When you run a grep, the Grep Tool passes on your string to a standard grep executable. It adds the appropriate filename(s) to your text string. In Explore and Analyze modes, menu choices enable you to control this scoping of the grep operation.

When the grep results are returned, the Grep Tool analyzes them and presents them in context. Using the file name and line number of each returned line, the Grep Tool determines the program symbol associated with that line. The Graph Symbols panel can be set to show the returned line directly below its associated symbol. And in the advanced modes, such as Structure mode, the associated symbols are highlighted. You see which function or class, rather than just which file, contains the returned strings.

In the Grep Tool, you get a list of all the matching source code lines. As you scroll through this list, you can determine the associated symbol by bringing up the Symbol Information overlay. Double-clicking will bring up the source code in the File Editor.