Bug 8604 J Search opens type selection dialog if code resolve has > 1 result
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchPage.java
GridLayout layout= new GridLayout();
		layout.numColumns= 2;
		result.setLayout(layout);
		fLimitTo= new Button[fLimitToText.length];
		for (int i= 0; i < fLimitToText.length; i++) {
			Button button= new Button(result, SWT.RADIO);
			button.setText(fLimitToText[i]);
			fLimitTo[i]= button;
		}
		return result;		
	}	
	
	private void initSelections() {
		ISelection selection= getSelection();
		fInitialData= null;
		fInitialData= tryTypedTextSelection(selection);
		if (fInitialData == null)
			fInitialData= trySelection(selection);
		if (fInitialData == null)
			fInitialData= trySimpleTextSelection(selection);
		if (fInitialData == null)
			fInitialData= getDefaultInitValues();
		fJavaElement= fInitialData.javaElement;
		fCaseSensitive.setSelection(fInitialData.isCaseSensitive);
		fCaseSensitive.setEnabled(fInitialData.javaElement == null);
		fSearchFor[fInitialData.searchFor].setSelection(true);
		setLimitTo(fInitialData.searchFor);
		fLimitTo[fInitialData.limitTo].setSelection(true);		
		fPattern.setText(fInitialData.pattern);
	}