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 153129 - Go to File should ignore nonsharable files
Summary: Go to File should ignore nonsharable files
Status: RESOLVED WORKSFORME
Alias: None
Product: utilities
Classification: Unclassified
Component: Jump To (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on: 66597
Blocks:
  Show dependency tree
 
Reported: 2008-11-13 10:52 UTC by Trond Norbye
Modified: 2009-01-27 17:53 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 Trond Norbye 2008-11-13 10:52:05 UTC
I have a java project open, and whenever I open the jumpto-dialog to open a file, it lists the .class file for the class
before the .java file... 

I don't think there is a lot of users out there that normally open a .class file in the ide, so I would say that giving
the .java file as the first file listed would improve the user experience...
Comment 1 Jesse Glick 2009-01-27 17:42:19 UTC
(See analogous issue #44310, classified as a DEFECT.)

Works for me on NBM projects. SearchWorker.findFiles does check SourceGroup.contains, which normally will exclude
SharabilityQuery.NOT_SHARABLE files and subfolders, such as build/, so the *.class files should not be presented at all.
(Perhaps more importantly than order of listing, this improves the search speed.)

Certain project types may fail to indicate sharability of some subfolders, in particular freeform projects. I will make
sure that is filed separately.