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
}
	
	/*
	 * @see org.eclipse.search.ui.text.AbstractTextSearchResult#isShownInEditor(org.eclipse.search.ui.text.Match, org.eclipse.ui.IEditorPart)
	 */
	public boolean isShownInEditor(Match match, IEditorPart editor) {
		Object element= match.getElement();
		IJavaElement je= ((JavaElementLine) element).getJavaElement();
		IEditorInput editorInput= editor.getEditorInput();
		if (editorInput instanceof IFileEditorInput) {
			try {
				return ((IFileEditorInput)editorInput).getFile().equals(je.getCorrespondingResource());
			} catch (JavaModelException e) {
				return false;
			}
		} else if (editorInput instanceof IClassFileEditorInput) {
			return ((IClassFileEditorInput)editorInput).getClassFile().equals(je);
		}
		
		return false;
	}
	/*
	 * @see org.eclipse.search.ui.ISearchResult#getLabel()
	 */
	public String getLabel() {
		int matchCount= getMatchCount();
		if (matchCount == 1) {
			return fQuery.getSingularLabel();
		} else {
			String format= fQuery.getPluralLabelPattern();