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.
@Override
protected boolean enable(Node[] activatedNodes) {
if (activatedNodes.length == 0) {
return false;
}
for (Node n: activatedNodes) {
FileObject fobj = n.getLookup().lookup(FileObject.class);
if (fobj == null || JavaSource.forFileObject(fobj) == null) {