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 202488 - RFE - Revert "No usages found" notification back to 7.0.1 version
Summary: RFE - Revert "No usages found" notification back to 7.0.1 version
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.1
Hardware: PC Linux
: P4 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 11:46 UTC by monezz
Modified: 2011-09-30 07:46 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
7.0.1 implementation of 0 occurences found (98.42 KB, image/png)
2011-09-22 12:28 UTC, monezz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description monezz 2011-09-22 11:46:32 UTC
[ BUILD # : 201109180600 ]
[ JDK VERSION : 1.6.27 ]

The usages window is not updated when there are no usages found for a class.
The previous result keeps being displayed. 0 occurrences is also a result and
should be displayed as such.

steps to reproduce:

- create a java application.
- create 3 classes, A B and C.
- In class C create a reference to B (something like private B b;)
- goto class B and find usages, scope open projects
result: "Usages of class B [1 occurrence]
- goto class A and find usages, scope open projects
expected result:"Usages of class A [0 occurrence]
Actual result:  "Usages of class B [1 occurrence]
Comment 1 Jiri Prox 2011-09-22 11:54:32 UTC
reproducible, but I've got dialog saying 'No patterns found'
Comment 2 monezz 2011-09-22 12:19:15 UTC
in build 201109202329 Indeed a popup is shown.
I am not a big fan of popup's to notify the user, but I guess that is a matter of taste.

In 7.0.1 a new "find usages" search would open a new Usages tab. In case of no usages found it would display "Usages of class A[0 occurrences]"
Comment 3 monezz 2011-09-22 12:28:55 UTC
Created attachment 111036 [details]
7.0.1 implementation of 0 occurences found
Comment 4 Jan Becicka 2011-09-29 13:33:22 UTC
If there are no usages, I think there is no reason to show empty results...
Comment 5 monezz 2011-09-29 13:42:56 UTC
Was there a reason to change to 7.0(.1) behavior into an intrusive popup? 
changed issue into an RFE since its not accepted as functional regression.
Comment 6 Jan Becicka 2011-09-30 06:13:28 UTC
popup was used instead of useless empty window.