java - How to find usages of an Inteface used by Class.this in Intellij
问题描述
For example, I have an inteface View.OnClickListener implemented in MainActivity class:
public class MainActivity implements View.OnClickListener {
@Override
void onClick(View var1){
// do things
}
}
Later it is used using this:
btn.setOnClickListener(MainActivity.this);
I want to locate just the code which use the OnClickListener of MainActivity. Does Intellij have a function to do that?
解决方案
您可以按住 ctrl 然后左键单击该方法。
推荐阅读
- php - 无法生成 php 工匠密钥
- firebase - 如果您只知道一个字段(firestore)的数据,如何找到文档的 id?
- scala - 为什么函数中对象成员的类型不同?
- flutter - 使用 Flurry 分析在 Flutter 中注册 iap 购买分析事件
- python - 打印多个图形时,最后一个标题写在底部
- database - 试图获取非对象的属性 - Laravel,无法显示我的外键数据
- c++ - 以 '1' 开头和结尾的子字符串数
- php - 如何在 PHP7.4 中替换 get_magic_quotes_runtime()
- javascript - 获取节点端口是未定义的,即使我在端口上看不到任何监听
- c# - UWP 类库 NuGet 包 XamlParseException 错误