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

旧巷老猫 提交于 2019-12-18 19:32:51

问题


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?


回答1:


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

Then click Limit To - Match locations (x of 15 selected):

This should give what you want.



来源:https://stackoverflow.com/questions/11830720/in-eclipse-is-it-possible-to-find-all-methods-in-project-that-take-a-certain-pa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!