Delete
Before you delete a file, you have the option to search your project for all uses of the file.
- Safely delete (with usage search). Select this option to search your project
for all uses of the file before you delete it.
- OK. Delete file without usage search. This button is enabled only if you do not
select Safely delete.
- Preview and Refactor. These buttons appear if you select Safely delete.
Both buttons open a list of Warnings and Errors.
- This panel is inherited from Java safe delete, which behaves differently. This is why
there are two buttons, Preview and Refactor, that do the same thing.
Warnings and Errors
A list of warnings and errors appears before you can safely delete a file. If the IDE finds any
errors, you cannot delete the file until the errors are solved. You can delete the file if there
are only warnings.
- Show Usages. Opens the Usages window, which shows all usages
of the file.
- Refactor. Delete the file. Enabled only if no errors are found.
Usages Window
If you select Show Usages in the Delete dialog, that dialog closes and the Usages window opens.
The Usages window shows all usages of the file you want to delete.
- Navigation buttons. On the left side of the Usages window are a series of buttons for navigating through the
usages. Hover your cursor over a button to see a tooltip describing its function.
 |
- Refresh
- Collapse/expand all nodes in tree
- Show logical view (organized by syntax)
- Show physical view (organized by location)
- Previous occurance
- Next occurance
|
- Usages. A tree view of all usages of the file
that you want to delete. Using the navigation buttons you can view either a logical tree,
organized by syntax, or a physical view, organized by location. Double-click a usage in the tree, and the editor
focuses on that line in the code. (If the file containing that usage is not open, the IDE opens it.)
Legal Notices