Bug 62062 Mark Occurrences annotation text is not interesting as Tooltip Description
I20040512-0800 Mark Occurrences annotation is not interesting as Tooltip Description. Steps: - enable Mark Occurrences - set caret to a variable and wait until occurrences marked - hover over variable or press F2 -> expected: type, name and javadoc -> was: only name (I guess this is the Annotation's text)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/hover/AnnotationHover.java
if (layer > -1)
				return formatMessage(message);
		}
		
		return null;
	}
	
	/*
	 * @see IJavaEditorTextHover#setEditor(IEditorPart)
	 */
	public void setEditor(IEditorPart editor) {
		if (editor instanceof CompilationUnitEditor)
			super.setEditor(editor);
		else
			super.setEditor(null);
	}
	/**
	 * Returns the annotation preference for the given annotation.
	 *
	 * @param annotation the annotation
	 * @return the annotation preference or <code>null</code> if none
	 */	
	private AnnotationPreference getAnnotationPreference(Annotation annotation) {
		
		if (annotation.isMarkedDeleted())
			return null;
		return EditorsUI.getAnnotationPreferenceLookup().getAnnotationPreference(annotation);
	}
}