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 42293 - J2SE project logical view root node should not be a FolderNode filter
Summary: J2SE project logical view root node should not be a FolderNode filter
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-21 17:13 UTC by Jesse Glick
Modified: 2007-09-26 09:14 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 Jesse Glick 2004-04-21 17:13:49 UTC
The (misnamed) J2SEPhysicalViewProvider makes
J2SERootFilterNode be a filter over the
FolderNode. Probably this is a mistake. It just
causes unknown and possibly buggy effects, such as
a DataFolder being in the node lookup (which
misleads people into trying to use that cookie as
is). I have now heard of at least two people
trying to do things the wrong way because they
made unfounded assumptions based on the contents
of the J2SERFN lookup.

Better IMHO to keep the current visible appearance
but change the node impl to be a plain
AbstractNode with just the Project in its lookup -
all that is required by LogicalViewProvider.
Comment 1 Petr Hrebejk 2004-04-27 13:25:05 UTC
So the RootNode of packageView is no longer filter over DataNode.
That's nice. However I had to leave the DataFolder in it's lookup in
order to make the Find action happy (working). 
Maybe we should do something to FindAction in order to permit
searching without hawing DataFolder in lookup.

Comment 2 Marian Petras 2004-04-27 13:40:25 UTC
I am preparing a mechanism that will allow searching without
DataFolder being in Lookup.
Comment 3 Jesse Glick 2004-04-27 14:51:57 UTC
Marian, do you have an issue filed that Find does not work without the
DataObject?

BTW the Sources impl in j2seproject should now be accurate and
complete, with folders of TYPE_GENERIC and TYPE_JAVA.
Comment 4 Marian Petras 2004-04-27 17:25:28 UTC
No, there is no such issue.
Comment 5 Jesse Glick 2004-04-27 23:11:06 UTC
OK, I filed issue #42540 for tracking purposes.