assistContext = new AssistContext(javaContext.getCompilationUnit(), sourceViewer,
fieldSourceRange.getOffset(), fieldSourceRange.getLength());
node = assistContext.getCoveringNode();
if (node instanceof FieldDeclaration) {
// int invocationOffset = javaContext.getInvocationOffset();
FieldDeclaration fieldDecl = (FieldDeclaration) node;
// Set<Annotation> annotations =
// ProposalCalculatorUtil.findAnnotations("Qualifier",
// invocationOffset,
// fieldDecl);
// for (Annotation a : annotations) {
// LocationInformation info = getLocationSourceRange(a,
// javaContext.getViewer(), invocationOffset);
// int locationOffset = info.getOffset();
// int locationLength = info.getLength();
// if (invocationOffset >= locationOffset && invocationOffset <=
// locationOffset + locationLength) {
ITypeBinding typeBinding = fieldDecl.getType().resolveBinding();
proposals.addAll(getMatchingBeansProposal(locationInfo.getFilter(), typeBinding, fieldDecl,
javaContext, locationInfo));
}
}