Bug 30291 SearchUsagesInFileAction should show dialog in case of failures
Build I20030122 SearchUsagesInFileAction should show a dialog in failure/error cases (e.g. code resolve fails).
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchUsagesInFileAction.java
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITextSelection;
import org.eclipse.search.ui.IGroupByKeyComputer;
import org.eclipse.search.ui.ISearchResultView;
import org.eclipse.search.ui.SearchUI;
import org.eclipse.swt.custom.BusyIndicator;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.texteditor.MarkerUtilities;
 
/**
 * Searches for occurences of the element at the caret 
 * in a file using the AST.
 */
public class SearchUsagesInFileAction extends Action {
	
	static public class NameUsagesFinder extends ASTVisitor {
		private IBinding fTarget;
		private List fUsages= new ArrayList();
		private List fWriteUsages= new ArrayList();
	
		public NameUsagesFinder(IBinding target) {
			super();
			fTarget= target;
		}
		public boolean visit(QualifiedName node) {
			match(node, fUsages);
			return super.visit(node);
		}