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
  1. 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).
  2. 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).
  3. Click Add. The rule will be added to the list.
Modifying a rule
  1. Select an existing rule from the list.
  2. Make any required changes in the two fields.
  3. Click Modify to append the changes to your rule.
Deleting a rule
  1. Select an existing rule from the list.
  2. Click Delete.
  3. 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

Code Viewer | Opening objects


CAST Website