Bug 63382 Occurrences search: Annotations not shown in re-opened editor [search]
200405210010 - select return type of "TestResult run()" in TestCase.java - Search > Find Occurrences in File -> search annotations are correctly shown in vertical ruler - close editor - Navigate > Back -> only one search annotation is shown in vertical ruler -> expected: all annotations shown "Go to Next/Previous Annotation" also finds only one of the occurrences.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/OccurrencesSearchResult.java
fQuery= query;
	}
	
	/*
	 * @see org.eclipse.search.ui.text.AbstractTextSearchResult#findContainedMatches(org.eclipse.core.resources.IFile)
	 */
	public Match[] computeContainedMatches(AbstractTextSearchResult result, IFile file) {
		Object[] elements= getElements();
		if (elements.length == 0)
			return NO_MATCHES;
		
		JavaElementLine jel= (JavaElementLine) elements[0];
		try {
			if (file.equals(jel.getJavaElement().getCorrespondingResource()))
				return getMatches(jel);
		} catch (JavaModelException e) {
			
		}
		return NO_MATCHES;
	}
	/*
	 * @see org.eclipse.search.ui.text.AbstractTextSearchResult#findContainedMatches(org.eclipse.ui.IEditorPart)
	 */
	public Match[] computeContainedMatches(AbstractTextSearchResult result, IEditorPart editor) {
		
		IEditorInput editorInput= editor.getEditorInput();
		if (editorInput instanceof IFileEditorInput)  {
			IFileEditorInput fileEditorInput= (IFileEditorInput) editorInput;
			return computeContainedMatches(result, fileEditorInput.getFile());