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 following code returns true for Composite App projects: FileObject fo = dobj.getPrimaryFile(); Project project = FileOwnerQuery.getOwner(fo); Sources sources = ProjectUtils.getSources(project); SourceGroup[] srcGrps = sources.getSourceGroups("java"); if(srcGrps.length == 0) return false; else return true; This is incorrect as you cannot create java files in this project.