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.
If an instance of PackageNode is asked to provide a list of DataObjects it contains, it returns not only DataObjects from that package but also those contained in its subpackages. Details: PackageNode: org.netbeans.spi.java.project.support.ui. ... ... PackageViewChildren.PackageNode For obtaining a list of DataObjects, I use: DataObject.Container container = PackageNode.getCookie(DataObject.Container.class) Then, I just call container.getChildren().
When I was creating this bug report, the issue was causing me problems with implementing the search feature for package nodes. This is solved now - this issue no longer blocks the search feature. I noticed that the issue was marked as blocking issue #41535 ("Ant-based project and build system infrastructure") so I do not close it.
Petr is this still true? Does a package node still have the folder in it?
Probably yes
Checking in src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java; /cvs/java/project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java,v <-- PackageViewChildren.java new revision: 1.24; previous revision: 1.23 done Processing log script arguments... More commits to come... Checking in test/unit/src/org/netbeans/spi/java/project/support/ui/PackageViewTest.java; /cvs/java/project/test/unit/src/org/netbeans/spi/java/project/support/ui/PackageViewTest.java,v <-- PackageViewTest.java new revision: 1.10; previous revision: 1.9 done