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 - PackageNode contains DataObjects from subpackages
Summary: PackageNode contains DataObjects from subpackages
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-04-20 14:28 UTC by Marian Petras
Modified: 2004-08-13 12:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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