![](/img/trans.png)
[英]How do I limit the results of Intellij Find Usages to only those of a specific class?
[英]How to find usages of an Inteface used by Class.this in Intellij
例如,我在MainActivity類中實現了一個接口View.OnClickListener :
public class MainActivity implements View.OnClickListener {
@Override
void onClick(View var1){
// do things
}
}
后來它使用這個:
btn.setOnClickListener(MainActivity.this);
我只想找到使用MainActivity的OnClickListener的代碼。 Intellij 是否具有執行此操作的功能?
您可以按住 ctrl,然后左鍵單擊該方法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.