Filter Eclipse's “Open Call Hierarchy” to just my company/project

倖福魔咒の 提交于 2019-12-05 02:29:13

It appears that "Filter Calls" uses glob syntax for filter patterns, not regular expressions. You can't specify something that should not match with glob patterns. Sorry.

I had the same problem lately and exploring the options of the Call Hierarchy led me to the Search In option. It is activated by clicking on the triangle

The filtering options are pretty simple and effective:

It is not exactly what you are looking for, but it is an alternate solution. Take a look at nWire for Java. It is a code exploration plugin. Among many other things, it will present the call hierarchy. However, it will only show calls which originate from your own code, so it should fit your needs.

Another approach is to open the 'Type Hierarchy' view's View menu, select 'Select Working Set' and select an existing or new working set that only includes the project you're currently interested in (create one just for this purpose if necessary, e.g. called 'TypeHierarchyFilterWorkingSet').

I just did this using Eclipse Indigo, by the way, not sure whether the other versions have something similar.

After "Open Call Hierarchy" right click on the root of the results and select under "References" or "Declarations" the project you interest in:

One solution (though somewhat brute force) is to remove the other code from Eclipse's reach. Either put them into separate workspaces, or, if you sometimes do need them in one workspace, close the other projects when you don't want to see them.

You could try to add a parameter to the method, than all calls will be shown as error on rebuild.

you could filter out org., net., java.* and so on. This (in my case) reduces the list enormously

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