Bug 75200 [Decorators] Color and Font decorators dissapear in Package Explorer
3.0 M2 The CVS font/color decorations dissapear in the packages explorer, or do not apply to all the elements they should. I will investigate on our end, but this seems to be a package explorer problem since the navigator always shows these decorations correctly.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ResourceToItemsMapper.java
return fResourceToItem.isEmpty();
	}	
	
	/**
	 * Method that decides which elements can have error markers
	 * Returns null if an element can not have error markers.
	 */	
	private static IResource getCorrespondingResource(Object element) {
		if (element instanceof IJavaElement) {
			IJavaElement elem= (IJavaElement) element;
			if (!elem.isReadOnly()) { 
				IResource res= elem.getResource();
				if (res == null) {
					ICompilationUnit cu= (ICompilationUnit) elem.getAncestor(IJavaElement.COMPILATION_UNIT);
					if (cu != null) {
						
						res= cu.getResource();
					}
				}
				return res; 
			}
			return null;
		} else if (element instanceof IResource) {
			return (IResource) element;
		}
		return null;
	}
	
}