Launching the Code Viewer
To launch the Code Viewer:
- In the Graphical View, select an object or link whose code you would like to view.
- Then right click and select Code Viewer from the shortcut menu.
The selected object or link's source code will then be located (using the location information stored in the Knowledge Base), and displayed in the Code Viewer window. The object name is also displayed in the tab at the bottom of the window along with the number of bookmarks (if any).
Notes
- You can also use the shortcut key F10 to launch the Code Viewer.
- The Code Viewer can also be launched from the following locations using the respective right click shortcut menus:
- Technical Browser
- Domain Browser
- User List
- Search In Code List
- Impact window
- By selecting Tools > Code Viewer on the menu bar.
- In some cases the Code Viewer will not be able to locate the code for a selected object. For the most part this is because the object's location path stored in the Knowledge Base may not be accessible from the machine on which you are using the Code Viewer.
For example, the client file "test.cpp" may be stored in the Knowledge Base with the path location c:\development\work\test.cpp, but on your machine (or from wherever you are using the Code Viewer), c:\ is mapped as network drive k:\ - the Code Viewer will therefore not be able to resolve this location.
Using the Code Location Manager tab you can create a rule that tells the Code Viewer to replace all occurrences of c:\ with k:\ for code viewing or editing requirements.
- With regard to server side objects: When you want to view the code of a server object, the Code Viewer will use the connection used during the analysis of the object in question.
- You can view the code of multiple objects if you require:
- Select the objects you require either in the Object Browser window or the Graphical View by holding down either the SHIFT or CTRL keys and then clicking the objects with the mouse pointer.
- Right click any of the selected objects to launch the shortcut menu.
- Select Code Viewer from the menu or use the F11 shortcut key.
The code of your selected objects will now be displayed in the Code Viewer. Each object will have its own individual tab in the Code Viewer that you can click to see the code.
Please note that you can view the code of as many objects as you require, but choosing to do so on a large number of objects may take a significant amount of time to process.
See Also
Code Viewer | Code Viewer window | Code Location Manager tab