Bug 10276 Search dialog has wrong labels
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaElementAction.java
return getJavaElement((IStructuredSelection)o, silent);
		else if (o instanceof ISearchResultViewEntry)
			return getJavaElement((ISearchResultViewEntry)o, silent);
		return null;
	}
	private IJavaElement getJavaElement(ISearchResultViewEntry entry, boolean silent) {
		if (entry != null)
			return getJavaElement(entry.getSelectedMarker(), silent);
		return null;
	}
	protected IJavaElement getJavaElement(IStructuredSelection selection, boolean silent) {
		if (selection.size() == 1)
			
			return getJavaElement(selection.getFirstElement(), silent);
		return null;
	}
	public IStructuredSelection getSelection() {
		IWorkbenchWindow window= JavaPlugin.getActiveWorkbenchWindow();
		if (window != null)
			return StructuredSelectionProvider.createFrom(window.getSelectionService()).getSelection();
		else
			return StructuredSelection.EMPTY;
	}
	private IJavaElement chooseFromList(IJavaElement[] openChoices) {
		int flags= JavaElementLabelProvider.SHOW_DEFAULT | JavaElementLabelProvider.SHOW_QUALIFIED;
		ILabelProvider labelProvider= new JavaElementLabelProvider(flags);
		ElementListSelectionDialog dialog= new ElementListSelectionDialog(JavaPlugin.getActiveWorkbenchShell(), labelProvider);
		dialog.setTitle(SearchMessages.getString("SearchElementSelectionDialog.title")); 
		dialog.setMessage(SearchMessages.getString("SearchElementSelectionDialog.message")); 
		dialog.setElements(openChoices);