Bug 40785 [plan item] Overview ruler improvements
- navigation from ruler to editor - hovering over header area shows number of errors/warning (header annotations in general)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/filebuffers/CompilationUnitDocumentProvider2.java
super.saveDocument(monitor, element, document, overwrite);
	}
	
	/*
	 * @see org.eclipse.jdt.internal.ui.javaeditor.ICompilationUnitDocumentProvider#createLineTracker(java.lang.Object)
	 */
	public ILineTracker createLineTracker(Object element) {
		return new DefaultLineTracker();
	}
	/*
	 * @see IDocumentProvider#connect(Object)
	 */
	public void connect(Object element) throws CoreException {
		setParentDocumentProvider(getParentProvider(element));
		super.connect(element);
	}
	/**
	 * Returns the parent provider for the given element.
	 * 
	 * @param element the element
	 * @return the parent document provider
	 */	
	private IDocumentProvider getParentProvider(Object element) {
		if (element instanceof IFileEditorInput)
			return fParentProviderForFileResources;
		else	
			return fParentProviderForNonResources;
	}
}