Code Location Manager tab
Tools > Options > Code Location Manager
The Code Location Manager tab is to be used in conjunction with the Code Viewer or the Open Object/Dedicated Application function. It allows you to create path replacement rules to enable the application to successfully locate the required client side file (for code viewing or editing requirements).
When client side projects are analyzed with CAST Products, the actual location of the files is identified and then stored in the Knowledge Base (along with other information). Depending on the setup used in your organization, the application may not be able to resolve the client file location using the information stored in the Knowledge Base.
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 application), c:\ is mapped as network drive k:\ - the application will therefore not be able to resolve this location.
Using this configuration tab you can create a rule that tells the application to replace all occurrences of c:\ with k:\ for code viewing or editing requirements.
Adding a rule
- Enter a source path pattern in the Source path pattern field at the bottom of the tab (use the Browse button to search for a required path).
- Enter a target path pattern (replacement path) in the Target path pattern field at the bottom of the tab (use the Browse button to search for a required path).
- Click Add. The rule will be added to the list.
Modifying a rule
- Select an existing rule from the list.
- Make any required changes in the two fields.
- Click Modify to append the changes to your rule.
Deleting a rule
- Select an existing rule from the list.
- Click Delete.
- The rule will be removed and will no longer be used.
Notes
- The first rule that matches will always be used.
- You can define rule precedence if you create more than one rule. Use the Up and Down arrows next to the rule list to move a selected rule in the required direction.
- You can use Regular Expressions in your rules.
See Also