}
public void apply(ICompletionReporter reporter) throws BadLocationException {
ICompletionContext context = getContext();
NamespaceMemberContext concreteContext = (NamespaceMemberContext) context;
CompletionRequestor requestor = concreteContext
.getCompletionRequestor();
IType enclosingClass = null;
try {
IModelElement enclosingElement = concreteContext.getSourceModule()
.getElementAt(concreteContext.getOffset());
while (enclosingElement instanceof IField) {
enclosingElement = enclosingElement.getParent();
}
if (enclosingElement instanceof IMethod) {
IModelElement parent = ((IMethod) enclosingElement).getParent();