View RSS Feed

My Java Tips

Searching methods with some return type in Eclipse

Rate this Entry
by , 05-21-2011 at 11:47 PM (2390 Views)
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

Java Code:
* 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.

Name:  searchreturntype.jpg
Views: 204
Size:  22.2 KB

Submit "Searching methods with some return type in Eclipse" to Facebook Submit "Searching methods with some return type in Eclipse" to Digg Submit "Searching methods with some return type in Eclipse" to del.icio.us Submit "Searching methods with some return type in Eclipse" to StumbleUpon Submit "Searching methods with some return type in Eclipse" to Google

Tags: None Add / Edit Tags
Categories
Eclipse

Comments