Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Eclipse, is it possible to find all methods in project that take a certain parameter type?

So that's basically my question. I'm converting all methods ArrayLists to HashMaps in parameterized methods, but I don't want to convert all ArrayLists to HashMaps since there are a few that are used locally. This is more of a curiosity than anything, but it would be useful.

So, in Eclipse, is it possible to find all methods in project that take a certain parameter type?

like image 881
StackOverflowed Avatar asked Aug 06 '12 14:08

StackOverflowed


People also ask

How do you check where all the method is called in eclipse?

1. Shortcut commands in Eclipse IDE: CTRL + O –> used to search methods inside same Java class. CTRL + H –> opens dialog box which provides number of options to find method.

How do I do a global search in eclipse?

Ctrl + Alt + G can be used to find selected text across a workspace in eclipse.

How do I search for multiple keywords in eclipse?

Solution. Use the built-in Eclipse Search dialog. The Search menu contains multiple items (Search→ Search, Search→ File, Search→ Help, and Search→ Java), but all of them open the same dialog.


1 Answers

Press Ctrl+H or from menu bar Search - Search ..., then choose Java Search: enter image description here

Then click Limit To - Match locations (x of 15 selected): enter image description here

This should give what you want.

like image 132
yorkw Avatar answered Oct 21 '22 05:10

yorkw