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
}
		return AST.parseCompilationUnit(getCompilationUnit(), true);
	}
	
	public void run(final IWorkspaceRunnable runnable) {
		BusyIndicator.showWhile(fEditor.getSite().getShell().getDisplay(),
			new Runnable() {
				public void run() {
					try {
						ResourcesPlugin.getWorkspace().run(runnable, null);
					} catch (CoreException e) {
						JavaPlugin.log(e);
					}
				}
			}
		);
	}
	
	public ISearchResultView startSearch(String fileName, final Name name) {
		SearchUI.activateSearchResultView();
		ISearchResultView view= SearchUI.getSearchResultView();
		String elementName= getName(name);
		
		if (view != null) 
			view.searchStarted(
				null,
				getSingularLabel(elementName, fileName),
				getPluralLabel(elementName, fileName),
				JavaPluginImages.DESC_OBJS_SEARCH_REF,
				"org.eclipse.jdt.ui.JavaFileSearch",