scope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(getSelection());
scope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(getSelection(), includeJRE);
	private boolean performNewSearch() {		NewSearchUI.activateSearchResultView();		SearchPatternData data= getPatternData();		if (data.wrapperClass == null || data.propertyFile == null)			return false;				// Setup search scope		IJavaSearchScope scope= null;		String scopeDescription= ""; //$NON-NLS-1$		switch (getContainer().getSelectedScope()) {			case ISearchPageContainer.WORKSPACE_SCOPE :				scopeDescription= NLSSearchMessages.getString("WorkspaceScope"); //$NON-NLS-1$				scope= SearchEngine.createWorkspaceScope();				break;			case ISearchPageContainer.SELECTION_SCOPE :				scopeDescription= NLSSearchMessages.getString("SelectionScope"); //$NON-NLS-1$				scope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(getSelection());				break;			case ISearchPageContainer.SELECTED_PROJECTS_SCOPE :				scope= JavaSearchScopeFactory.getInstance().createJavaProjectSearchScope(getSelection());				IProject[] projects= JavaSearchScopeFactory.getInstance().getProjects(scope);				if (projects.length > 1)					scopeDescription= NLSSearchMessages.getFormattedString("EnclosingProjectsScope", projects[0].getName()); //$NON-NLS-1$				else if (projects.length == 1)					scopeDescription= NLSSearchMessages.getFormattedString("EnclosingProjectScope", projects[0].getName()); //$NON-NLS-1$				else 					scopeDescription= NLSSearchMessages.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= NLSSearchMessages.getFormattedString("WorkingSetScope", new String[] { SearchUtil.toString(workingSets)}); //$NON-NLS-1$				scope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(getContainer().getSelectedWorkingSets());				SearchUtil.updateLRUWorkingSets(getContainer().getSelectedWorkingSets());		}				NLSSearchQuery query= new NLSSearchQuery(data.wrapperClass, data.propertyFile, scope, scopeDescription);		NewSearchUI.runQuery(query);		return true;	}