コード例 #1
0
  private IMethod findImplementingMethods(IMethod calledMethod) {
    Collection implementingMethods =
        CallHierarchy.getDefault().getImplementingMethods(calledMethod);

    if ((implementingMethods.size() == 0) || (implementingMethods.size() > 1)) {
      return calledMethod;
    } else {
      return (IMethod) implementingMethods.iterator().next();
    }
  }
コード例 #2
0
 private IJavaSearchScope getSearchScope() {
   return CallHierarchy.getDefault().getSearchScope();
 }