This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The Context Menu Tools->Metrics... is available even on nodes which don't point to anything related to a java file. For example, an xml file or any random file. It should only work for .java files, .class files and directories containing at least one file of those types
Cleaning up my issues...