Stephen,
if the Delete option is accidentally selected |
The default selected button in this message box is "Remove". So, if you click "Delete", we suppose that you do this intentionally. Anyhow, I agree with your words that the consequences can be "catastrophic". I spoke with the developers and we'll think how to improve the situation.
could I make a suggestion that the referenced items in the project tree have a different icon, something to show that they are references to other units, perhaps something like the Windows shortcut icon, where a little arrow appears in the bottom left corner. |
From TestComplete's point of view, there is no "referenced" and "non-referenced" files as both files reside on the hard drive and the project just stores the path to them. I added your request to our database. We'll think what we can do. Most likely, we will "highlight" project items that reside out of the project's folder.
If I create a reference to a class file that subsequently is not required, how do I remove it? |
I'd suggest the following procedure:
* Right-click the unit in the Project Explorer and choose Remove from the context menu.
* TestComplete will display a dialog suggesting you to remove or delete the unit. Click Remove.
* Right-click the Script node in the Project Explorer and select
Check Syntax from the context menu. The syntax check will fail in the unit that refers to the unit you removed. So, you can delete the appropriate //USEUNIT statement from it.
* Click
Check Syntax from the Script node's context menu again. TestComplete will find another unit that refers to the removed unit.
* Repeat these steps until you clear all the references.