![](/img/trans.png)
[英]how to call the static variable to non static method, i.e I need to call the maxId variable to insert method
[英]How to find all occurrences of a certain variable/method in Eclipse? i.e the equivalent of “cmd + b” of Android Studio
说,我们有一个常量类:
public class Constant {
...
public static final String UNIVERSAL_VARIABLE = "many classes will find me handy";
}
在AndroidStudio中,如果我将鼠标悬停在UNIVERSAL_VARIABLE上并单击cmd + b
,则它将显示使用UNIVERSAL_VARIABLE的所有类以及在哪一行。
我们如何在Eclipse中做到这一点?
CTRL + SHIFT + G
或右键单击引用->工作区(或项目)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.