Lines 541-547
Link Here
|
541 |
} |
541 |
} |
542 |
if (refBinding.isLocalType()) { |
542 |
if (refBinding.isLocalType()) { |
543 |
// see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=82673 |
543 |
// see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=82673 |
544 |
LocalTypeBinding local = (LocalTypeBinding) refBinding; |
544 |
LocalTypeBinding local = (LocalTypeBinding) refBinding.erasure(); |
545 |
IJavaElement focus = ((InternalSearchPattern)pattern).focus; |
545 |
IJavaElement focus = ((InternalSearchPattern)pattern).focus; |
546 |
if (focus != null && local.enclosingMethod != null && focus.getParent().getElementType() == IJavaElement.METHOD) { |
546 |
if (focus != null && local.enclosingMethod != null && focus.getParent().getElementType() == IJavaElement.METHOD) { |
547 |
IMethod method = (IMethod) focus.getParent(); |
547 |
IMethod method = (IMethod) focus.getParent(); |