nmore
nmore

Reputation: 2573

Eclipse search for String.isEmpty()

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

Answers (2)

rocketboy
rocketboy

Reputation: 9741

Ctrl Shift G - Find references in workspace, will catch the correct references only in Eclipse.

Upvotes: 1

saurav
saurav

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

Related Questions