Searching methods with some return type in Eclipse
by, 05-21-2011 at 10:47 PM (2874 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
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.Java Code:* String