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 209824

Summary: "Find in Projects"-Warning: Unsaved changes in File Foo.jav
Product: utilities Reporter: stefan79 <stefan79>
Component: SearchAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: The Warning-Message at my sample-project.

Description stefan79 2012-03-21 08:03:37 UTC
[ BUILD # : 201203200400 ]
[ JDK VERSION : 1.7.3 ]

The warning "Unsaved changes in xxx files" makes no sense, when this files are
not in the scope.

To reproduce:
-) Make a project with two folders "A" and "B".
-) Make a new Class at folder "A", edit this file but donĀ“t save the file
-) Select folder "B", press Ctrl-F and at Scope selected "Selected (B)".
-> Now you get a warning that there are unsaved files.
Comment 1 stefan79 2012-03-21 08:04:02 UTC
Created attachment 116973 [details]
The Warning-Message at my sample-project.
Comment 2 Jaroslav Havlin 2012-03-22 15:10:05 UTC
http://hg.netbeans.org/core-main/rev/01fae39b9259

It is currently not possible (or at least not easy) to match unsaved objects in Savable.REGISTRY with FileObject instances in the search scope.

Changing the warning message to a more abstract one.
Marking as enhancement again.
Comment 3 Quality Engineering 2012-03-24 11:06:09 UTC
Integrated into 'main-golden', will be available in build *201203240400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/01fae39b9259
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #209824 - Do not show names of unsaved files in warning