How to get all the references of static field with JDT
I found Java: Find all callers of a method – get all methods that call a particular method that gives a hint on how to find all the callers of a specific method. Then, how to get the users of a static field? For example, when I have static z in AnotherClass , and it is accessed with ClassA , how to get the IMethod ClassA#moved ? public class AnotherClass { public static int z = 20; .... } public class ClassA { public int moved(int x, int y) { int temp = AnotherClass.z; } Gavin Xiong The example is base on the org.eclipse.jdt.internal.* classes, I think you don't need to take so much effort to