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.
Mentioned in issue #42293. When fixed, DataFolder should be removed from the lookup of the j2seproject logical view root node. Necessary for proper external source root support, among other things. Use GenericSources if the project has no Sources impl. Use TYPE_GENERIC to get source folders to search for files generally, or other types (e.g. TYPE_JAVA) to search just in particular source folders (e.g. package roots). The SourceGroup impl should automatically exclude build products and subprojects; just call contains(...) to check whether you should search a file or subdirectory.
Accepted.
Fixed in the trunk. projects/projectui/src/org/netbeans/modules/project/ui/ ProjectsRootNode.java - CVS revision 1.6
Well I removed the project folder from j2seproject's root node's lookup. But it seems the Find context menu item is disabled. At least in the case of a project with external sources. Please recheck.
Jirka confirms it does not work.
Sorry, wrong Jirka, back to bed. :-O
I confirm that the change you made caused the Find action to be disabled. But the reason is not that I would use DataFolders (instead of Sources). The cause is that the mechanism for enabling/disabling the Find action checks for a DataObject cookie (which is wrong). I already have a fix for it. I will integrate it tomorrow.
OK, thanks.
Fixed in the trunk.
Note that phrebejk accidentally reverted my fix to j2seproject recently, so until he fixes that, don't bother checking whether this patch really worked.
Oops. Sorry. Jesse could you be more specific where the patch was?
Jesses changes are back should be back.
Verifying that find works well.