Bug 6718 Error ticks on non-Java resources
This is a VAME request. They would like to show error ticks on manifest files.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/AnnotationErrorTickProvider.java
private IAnnotationModel fAnnotationModel;
	public AnnotationErrorTickProvider(IAnnotationModel model) {
		fAnnotationModel= model;
	}
	
	public AnnotationErrorTickProvider(ITextEditor editor) {
		this(editor.getDocumentProvider().getAnnotationModel(editor.getEditorInput()));
	}	
	/**
	 * @see IErrorTickProvider#getErrorInfo(IJavaElement)
	 */
	public int getErrorInfo(IJavaElement element) {
		int info= 0;
		if (element instanceof ISourceReference) {
			try {
				ISourceRange range= ((ISourceReference)element).getSourceRange();
			
				Iterator iter= fAnnotationModel.getAnnotationIterator();
				while ((info != ERRORTICK_ERROR) && iter.hasNext()) {
					Annotation curr= (Annotation) iter.next();
					IMarker marker= isApplicable(curr, range);
					if (marker != null) {
						int priority= marker.getAttribute(IMarker.SEVERITY, -1);
						if (priority == IMarker.SEVERITY_WARNING) {
							info= ERRORTICK_WARNING;