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.

Bug 42169

Summary: PackageNode contains DataObjects from subpackages
Product: java Reporter: Marian Petras <mpetras>
Component: ProjectAssignee: Petr Hrebejk <phrebejk>
Status: RESOLVED FIXED    
Severity: blocker CC: jtulach
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 41535    

Description Marian Petras 2004-04-20 14:28:49 UTC
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().
Comment 1 Marian Petras 2004-05-03 13:01:18 UTC
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.
Comment 2 Jesse Glick 2004-06-15 13:07:56 UTC
Petr is this still true? Does a package node still have the folder in it?
Comment 3 Petr Hrebejk 2004-06-15 13:47:01 UTC
Probably yes
Comment 4 Jaroslav Tulach 2004-08-03 16:57:30 UTC
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