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 107512 - Build products shown in Open File dialog
Summary: Build products shown in Open File dialog
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Open File (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on: 111683
Blocks:
  Show dependency tree
 
Reported: 2007-06-20 20:41 UTC by Jesse Glick
Modified: 2007-08-01 23:49 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 2007-06-20 20:41:47 UTC
070620. I have nbbuild open as a project and want to jump to default.xml. Alt-Shift-O and type "def", expecting to see
just default.xml and default-properties.xml. I see these, but they are lost amid many more files from the netbeans/
subdirectory, e.g.:

netbeans/ruby1/jruby-1.0/lib/ruby/gems/1.8/gems/rspec-1.0.5/spec/spec/expectations/differs/default_spec.rb

IMHO build products (nonsharable files) should not be displayed in this dialog. Although it could be an option
(checkbox) to show them, I think it would be better to exclude them unconditionally, because:

1. If it a build product, it is very unlikely I would want to edit it.

2. Private files (e.g. private.properties) could be edited on occasion but this is probably rare and I can easily find
these in the Files tab if I need to.

3. The IDE probably wasted quite a bit of time indexing all these files - and the index will anyway be junk if I run a
clean target, or if build products are all under a dir named with a timestamp, etc.
Comment 1 Jesse Glick 2007-08-01 23:33:49 UTC
Fixed:

Checking in SearchWorker.java;
/shared/data/ccvs/repository/utilities/jumpto/src/org/netbeans/modules/jumpto/file/SearchWorker.java,v  <-- 
SearchWorker.java
new revision: 1.3; previous revision: 1.2
done

with some caveats:

1. The originally reported case does not work, because the nbbuild freeform project does not recognize netbeans/ as
unsharable - project.xml doesn't have any way of specifying it. (It appears as gray in the explorer only because of
.cvsignore interpreted in DataNode badging.) But other cases work, e.g. build/ dirs under module projects are skipped.

2. For efficiency, sharability is only checked up to two levels down. This is just a modification of the pre-existing
hack of only checking for nested projects one level down; the actual check is still for SourceGroup containership, which
for generic groups normally checks sharability as one condition. (The second level is necessary in order to exclude
nbproject/private.) Interactively on some example projects performance still seems fine.