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 204305 - Find Usages: Search from Base doesn´t work
Summary: Find Usages: Search from Base doesn´t work
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-27 09:37 UTC by stefan79
Modified: 2011-10-31 09:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test-Project (12.71 KB, application/octet-stream)
2011-10-27 09:41 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2011-10-27 09:37:51 UTC
[ BUILD # : 201110260600 ]
[ JDK VERSION : 1.6.25 ]

Search from Base doesn´t find anything.
Comment 1 stefan79 2011-10-27 09:41:46 UTC
Created attachment 112486 [details]
Test-Project

Try at the following project:
-) Go to TestImpl.java
-) Select the method "findSomething" ant press Alt-F7
-) "Search from Base Class [ITest]" is selected by default.
-) Klick on Find
-> You get the message "No Patterns Found".

Second test:
-) Go to interface "ITest.java"
-) Select the method "findSomething" ant press Alt-F7
-) Klick on Find
-> The class "MyUsageOfTest.java" is found
Comment 2 Jan Becicka 2011-10-27 11:55:18 UTC
This is rather usability issue than functional defect.
The problem is, that if I select Find Usages "Custom Scope" is preselected, and this scope is empty.
If I switch to all open projects all usages are found.
Comment 3 stefan79 2011-10-27 12:15:07 UTC
(In reply to comment #2)
> This is rather usability issue than functional defect.
I don´t think so. At NB7.0.1 it works as expected.

> The problem is, that if I select Find Usages "Custom Scope" is preselected, and
> this scope is empty.
"Current Project (TestFindUsages)" is preselected at my NetBeans.

I´ve tested this options:
-) "Current Project (TestFindUsages)" doesn´t find the Usage -> Wrong
-) Open Project finds the Usage -> Correct
-) "Current Package (com)" doesn´t find the Usage -> Wrong
-) "Current File (TestImpl.java)" doesn´t find the Usage -> Correct
-) "Custom Scope..." (I´v selected all opened Projects) doesn´t find the Usage -> Wrong
Comment 4 Ralph Ruijs 2011-10-27 12:16:54 UTC
Thanks for the test case. The find from base class is indeed not working when a different scope then "open projects" is selected.
Comment 5 Ralph Ruijs 2011-10-31 09:28:29 UTC
fixed in jet-main
http://hg.netbeans.org/jet-main/rev/2899b8bd53d5