Searching methods with some return type

6 October 2008

Working on a project, I need to search all the methods defined in my workspace or in a package or in a class with a specific return type. Eclipse search feature (ctrl + h) provides support for this. We all have used eclipse search window a lot of times but many of us don’t know how to really use it to great affect.

To search the methods with a specific return type, type

* String

is used as wildcard for method name and String is the return type. By default, the working set will be entire workspace but yon can narrow your search by defining your own working set. For instance define a working set with package you intend to search into.

search return types

del.icio.us:Searching methods with some return type  digg:Searching methods with some return type  spurl:Searching methods with some return type  wists:Searching methods with some return type  simpy:Searching methods with some return type  newsvine:Searching methods with some return type  blinklist:Searching methods with some return type  furl:Searching methods with some return type  reddit:Searching methods with some return type  fark:Searching methods with some return type  blogmarks:Searching methods with some return type  Y!:Searching methods with some return type  smarking:Searching methods with some return type  magnolia:Searching methods with some return type  segnalo:Searching methods with some return type  gifttagging:Searching methods with some return type

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: Searching methods with some return type

Leave a Reply