new SearchResultUpdater((JavaSearchResult) textSearchJob.getSearchResult());
	private boolean performNewSearch() {		org.eclipse.search.ui.NewSearchUI.activateSearchResultView();		SearchPatternData data= getPatternData();		// Setup search scope		IJavaSearchScope scope= null;		String scopeDescription= ""; //$NON-NLS-1$				boolean includeJRE= getSearchJRE() || !mayExcludeJRE();				switch (getContainer().getSelectedScope()) {			case ISearchPageContainer.WORKSPACE_SCOPE:				scopeDescription= SearchMessages.getString("WorkspaceScope"); //$NON-NLS-1$				scope= ReferenceScopeFactory.createWorkspaceScope(includeJRE);				break;			case ISearchPageContainer.SELECTION_SCOPE:				scopeDescription= SearchMessages.getString("SelectionScope"); //$NON-NLS-1$				scope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(fStructuredSelection, includeJRE);				break;			case ISearchPageContainer.SELECTED_PROJECTS_SCOPE:				scope= JavaSearchScopeFactory.getInstance().createJavaProjectSearchScope(fStructuredSelection, includeJRE);				IProject[] projects= JavaSearchScopeFactory.getInstance().getProjects(scope);				if (projects.length >= 1) {					if (projects.length == 1)						scopeDescription= SearchMessages.getFormattedString("EnclosingProjectScope", projects[0].getName()); //$NON-NLS-1$					else						scopeDescription= SearchMessages.getFormattedString("EnclosingProjectsScope", projects[0].getName()); //$NON-NLS-1$				} else 					scopeDescription= SearchMessages.getFormattedString("EnclosingProjectScope", ""); //$NON-NLS-1$ //$NON-NLS-2$				break;			case ISearchPageContainer.WORKING_SET_SCOPE:				IWorkingSet[] workingSets= getContainer().getSelectedWorkingSets();				// should not happen - just to be sure				if (workingSets == null || workingSets.length < 1)					return false;				scopeDescription= SearchMessages.getFormattedString("WorkingSetScope", SearchUtil.toString(workingSets)); //$NON-NLS-1$				scope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(getContainer().getSelectedWorkingSets(), includeJRE);				SearchUtil.updateLRUWorkingSets(getContainer().getSelectedWorkingSets());				}				JavaSearchQuery textSearchJob= null;		QuerySpecification querySpec= null;		if (data.getJavaElement() != null && getPattern().equals(fInitialData.getPattern())) {			if (data.getLimitTo() == IJavaSearchConstants.REFERENCES)				SearchUtil.warnIfBinaryConstant(data.getJavaElement(), getShell());			querySpec= new ElementQuerySpecification(data.getJavaElement(), data.getLimitTo(), scope, scopeDescription);		} else {			querySpec= new PatternQuerySpecification(data.getPattern(), data.getSearchFor(), data.isCaseSensitive(), data.getLimitTo(), scope, scopeDescription);			data.setJavaElement(null);		} 				textSearchJob= new JavaSearchQuery(querySpec);		new SearchResultUpdater((JavaSearchResult) textSearchJob.getSearchResult());		NewSearchUI.runQuery(textSearchJob);			return true;	}