Eclipse JDT Tutorial: Find All References of a Method
When using JDT, you may want to find all references of a given method and then do something with the references. This can be done by using method JDTSearchProvider.searchMethodReference(). The following is sample code: // First of all, get all the type declaration of the class. IType [] typeDeclarationList = unit.getTypes(); for (IType typeDeclaration … Read more