Reputation: 2573
Is there any way in Eclipse (Java EE-juno-SR1) to search for all occurrences of isEmpty()
that are invoked on string objects only?
For example,
I don't want the search to return .isEmpty()
invoked like some ArrayList.isEmpty()
in the search results. The best I have been able to do is search all occurrences of isEmpty()
.
Upvotes: 0
Views: 103
Reputation: 9741
Ctrl Shift G
- Find references in workspace, will catch the correct references only in Eclipse.
Upvotes: 1
Reputation: 5926
You can find who are calling your methods by the 'Call Hierarchy'
Right click on the method and say "Open Call Hierarchy"
cheers, Saurav
Upvotes: 0