Bug 5361 No error tick on imports in Packages view
Add an import that causes an error (e.g. dani.is.bad) and save. ==> The Outline view shows the error ticks on the imports but the package view doesn't
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/MarkerErrorTickProvider.java
IResource res= null;
			ISourceRange range= null;
			int depth= IResource.DEPTH_INFINITE;
			
			int type= element.getElementType();
			
			if (type == IJavaElement.JAVA_PROJECT || type == IJavaElement.PACKAGE_FRAGMENT_ROOT
				|| type == IJavaElement.PACKAGE_FRAGMENT || type == IJavaElement.CLASS_FILE || type == IJavaElement.COMPILATION_UNIT) {
				res= element.getCorrespondingResource();
				if (type == IJavaElement.PACKAGE_FRAGMENT) {
					depth= IResource.DEPTH_ONE;
				} else if (type == IJavaElement.JAVA_PROJECT) {
					IMarker[] bpMarkers= res.findMarkers(IJavaModelMarker.BUILDPATH_PROBLEM_MARKER, true, IResource.DEPTH_ONE);
					info= accumulateProblems(bpMarkers, info, null);
				}
			} else if (type == IJavaElement.TYPE || type == IJavaElement.METHOD || type == IJavaElement.INITIALIZER) {
				
				ICompilationUnit cu= ((IMember)element).getCompilationUnit();
				if (cu != null) {
					res= element.getUnderlyingResource();
					range= ((IMember)element).getSourceRange();
				}
			}
			
			if (res != null) {
				IMarker[] markers= res.findMarkers(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER, true, depth);
				if (markers != null) {
					info= accumulateProblems(markers, info, range);
				}
			}