[英]How to easily differentiate variables with the same name from different classes
I have been searching on my workspace in Eclipse. 我一直在Eclipse中搜索我的工作区。 One of the variables declared in ClassA is: 在ClassA中声明的变量之一是:
private String type = null;
type is such a common name, so there are probably several variables in different classes throughout different projects in the whole workspace called "type" (some of same data type and some of different data types). type是一个通用名称,因此在整个工作空间的整个项目中,不同的类中可能有多个变量,称为“类型”(某些数据类型相同,而某些数据类型不同)。
Other than the view Call Hierarchy , how can I see the different files where this particular "type" variable from ClassA is used when I do Search -> File? 除了视图Call Hierarchy之外 ,在执行“搜索”->“文件”时,如何查看使用ClassA的特定“类型”变量的其他文件?
If you are searching within your project for all references to the variable of a specific class, the IDE should have a built in feature to find all references to that variable. 如果要在项目中搜索对特定类变量的所有引用,则IDE应该具有内置功能来查找对该变量的所有引用。 I know in IntelliJ I can do that. 我知道在IntelliJ中我可以做到。 Not positive on how in Eclipse you'd do that. 对于如何在Eclipse中执行此操作并不满意。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.