After further research, this feature appears to have been added as an add on:
http://plugins.netbeans.org/plugin/23133/switch-file-read-write-access
Question
In the Netbeans IDE, is there a way to make a file read-only or prevent the file's contents from being edited, even though the file is part of a project as source code, a test package, or a data file?
PLEASE NOTE: I know a version control system should be used for any kind of project, and I diff any file with the version control copy before committing the changes to the repository; I'm just wondering if there's a way to "lock" a file in this editor/IDE.
Solution
After further research, this feature appears to have been added as an add on:
http://plugins.netbeans.org/plugin/23133/switch-file-read-write-access