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
if (project != null)
				projects.add(project);
		}
	}
	private void collectConcernedProjects(Set projects, IWorkspace workspace) {
		IProject[] allProjects= workspace.getRoot().getProjects();
		for (int i= 0; i < allProjects.length; i++) {
			if (allProjects[i].isAccessible())
				projects.add(allProjects[i]);
		}
	}
	private IProject getProject(Object element) {
		if (element instanceof ISearchResultViewEntry)
			element= ((ISearchResultViewEntry)element).getGroupByKey();
		if (element instanceof IAdaptable) {
			IAdaptable adaptable= (IAdaptable)element;
			IProject project= (IProject) adaptable.getAdapter(IProject.class);
			if (project != null)
				return project;
			IResource resource= (IResource) adaptable.getAdapter(IResource.class);
			if (resource != null)
				project= resource.getProject();
			if (project != null)
				return project;
		}
		return null;
	}
	
}