Bug 60414 Should generate IMarker if editor doesn't provide AnnotationModel
To be backward compatible with existing multi page editors we should generate temporary search markers if the text editor doesn't support Annotation models.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchPage.java
IWorkingSet[] workingSets= getContainer().getSelectedWorkingSets();
				
				if (workingSets == null || workingSets.length < 1)
					return false;
				scopeDescription= SearchMessages.getFormattedString("WorkingSetScope", SearchUtil.toString(workingSets)); 
				scope= JavaSearchScopeFactory.getInstance().createJavaSearchScope(getContainer().getSelectedWorkingSets());
				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;
	}
	
	
	private int getLimitTo() {
		for (int i= 0; i < fLimitTo.length; i++) {