Introduction
It is possible to view object source code direct in CAST Imaging. Source code is available in objects/links after a drill down from Level 5:
Click to expand
Objects | Right click the object after a drill down from Level 5 and choose Show source code: |
---|---|
Link | Drill down from Level 5 and either:
|
Source code can also be accessed using the keyboard shortcut ALT+S.
Source code will be auto scrolled to highlighted object/link:
Code is collapsed by default and limited to 200 lines, click to expand in groups of 200 lines, then 100, 20 and any remaining under 10:
Where an object is represented in multiple files, all files will be shown:
You can also toggle colours using the gear icon:
- Objects with over 7000 lines of code (LOC) will show only 500 lines above and below the item.
- If access to source code is not configured, a popup message will be displayed:
- If source code has been configured, but none is available for the current object (typically this is when the object is classed as "external to the application"), a different message will be displayed:
Viewing source code using a pop-up window
In versions ≥ 2.15, you may view the source code in a pop-up window using the pop-out icon.
Clicking on the pop-out icon lets you view the source code in a new pop-up window.
Viewing full content of sourcecode in a single click
In versions ≥ 2.17.0-beta1, you may view the full content of source code using the Show full source code icon.
Clicking on the Show full source code icon lets you to view full content of sourcecode by automatically moving the scroll bar from the start to the end of source code.
Highlighting all the occurrences of a variable or an object name
In versions ≥ 2.17.0-beta1, you may highlight all the occurances of a variable or an object (by selecting the variable/object name) in the entire sourcecode file. Highlighting is also supported in the new window source code opened through Open in New Window .