Filter Eclipse's “Open Call Hierarchy” to just

2019-04-21 23:34发布

One of my favorite features of Eclipse is the ability to open a caller/callee hierarchy of a method.

By default, the view shows calls to/from classes that are outside of my codebase... which I don't usually care about.

There is an option to filter out specific package names I don't want, but I need to do the opposite... to filter out all packages except the one I want. What is the appropriate regex to use here to "match all strings except those that start with com.mycompany.?"

alt text

8条回答
看我几分像从前
2楼-- · 2019-04-22 00:35

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

查看更多
成全新的幸福
3楼-- · 2019-04-22 00:37

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

查看更多
登录 后发表回答