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 44310

Summary: Search should ignore nonsharable files
Product: utilities Reporter: Jesse Glick <jglick>
Component: SearchAssignee: Marian Petras <mpetras>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 42741    
Bug Blocks: 41448    

Description Jesse Glick 2004-06-03 21:33:51 UTC
Dev build. I was surprised to find that when
searching for some text string in a project,
matches were included from the build dir. IMHO
search should not show you matches in nonsharable
files, or at least not without clicking some
checkbox to search these files. Otherwise it is
very easy to quickly jump to some text file in
build/classes/ (e.g.) and spend some time editing
it, before you realize that you should have been
editing the source file.

BTW if you used o.n.a.project.SourceGroup
correctly - using the contains() method - this
would work automatically.
Comment 1 Marian Petras 2004-07-29 14:20:48 UTC
Accepted.
Comment 2 Marian Petras 2004-08-16 11:34:23 UTC
*** Issue 47244 has been marked as a duplicate of this issue. ***
Comment 3 Marian Petras 2004-08-30 12:39:57 UTC
Fixed in the trunk, together with bug #46165 ("Search should skip
files which are hidden acc. to VisibilityQuery").

Modified and added files (newly added files have revision 1.1):

openidex/:
   manifest.mf   (1.31)
   nbproject/project.xml   (1.3)
   src/org/openidex/search/CompoundSearchInfo.java   (1.1)
   src/org/openidex/search/CompoundSearchIterator.java   (1.1)
   src/org/openidex/search/DataObjectSearchGroup.java   (1.15)
   src/org/openidex/search/FileObjectFilter.java   (1.1)
   src/org/openidex/search/SearchInfo.java   (1.5)
   src/org/openidex/search/SearchInfoFactory.java   (1.1)
   src/org/openidex/search/SharabilityFilter.java   (1.1)
   src/org/openidex/search/SimpleSearchInfo.java   (1.4)
   src/org/openidex/search/SimpleSearchIterator.java   (1.1)
   src/org/openidex/search/SubnodesSearchInfo.java   (1.1)
   src/org/openidex/search/Utils.java   (1.7)
   src/org/openidex/search/VisibilityFilter.java   (1.1)

projects/projectui/:
   nbproject/project.xml   (1.11)
   src/org/netbeans/modules/project/ui/ProjectsRootNode.java   (1.26)

utilities/:
   nbproject/project.xml   (1.7)

utilities/project/:
   nbproject/project.xml   (1.4)
   src/org/netbeans/modules/search/project/ProjectsSearchAction.java
                                                               (1.5)

java/project/:
   nbproject/project.xml   (1.15)
   src/org/netbeans/spi/java/project/support/ui/PackageRootNode.java  
                                                              (1.10)
   src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java
                                                               (1.31)