fJavaElement= chooseFromList(elements); if (fJavaElement != null) return determineInitValuesFrom(fJavaElement);
javaElement= chooseFromList(elements); if (javaElement != null) return determineInitValuesFrom(javaElement);
	private SearchPatternData tryTypedTextSelection(ISelection selection) {		if (selection instanceof ITextSelection) {			IEditorPart e= getEditorPart();			if (e != null) {				ITextSelection ts= (ITextSelection)selection;				ICodeAssist assist= getCodeAssist(e);				if (assist != null) {					IJavaElement[] elements= null;					try {						elements= assist.codeSelect(ts.getOffset(), ts.getLength());					} catch (JavaModelException ex) {						ExceptionHandler.handle(ex, SearchMessages.getString("Search.Error.createJavaElement.title"), SearchMessages.getString("Search.Error.createJavaElement.message")); //$NON-NLS-2$ //$NON-NLS-1$					}					if (elements != null && elements.length > 0) {						if (elements.length == 1)							fJavaElement= elements[0];						else							fJavaElement= chooseFromList(elements);						if (fJavaElement != null)							return determineInitValuesFrom(fJavaElement);					}				}			}		}		return null;	}