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.
To behave in the same way as the j2se project you need to add filter for related roots for sourceRoots: - ((FolderList)this.sourcePanel).setRelatedFolderList((FolderList)this.testsPanel); + ((FolderList)this.sourcePanel).setRelatedFolderList((FolderList)this.testsPanel, FolderList.testRootsFilter()); The j2se project also adds a message regarding DND but the web project seems not to have enough space for it. I wold do it myself, but I am not sure if you want to add the message or not. The rest is handled by common FolderList. The j2se change set is jet-main: bf5c3f804925
Since the behavior is now inconsistent between J2SE and Web, I would call this a (P3) defect.
It's just a bit inconsistent. The generic part is common, so DND among list is working and add searches all source roots. The only inconsistence is that j2se project places /.*test.*/ folders directly into test roots. This can be resolved by the 2 lines patch above. And j2se project also adds a comment about possible DND among these lists.
fixed in all EE project types fd757e6fa4c1
Integrated into 'main-golden', will be available in build *201002260200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/fd757e6fa4c1 User: David Konecny <dkonecny@netbeans.org> Log: #180818 - Support top level directory import (as supported in Eclipse, JDeveloper)