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/viewsupport/ProblemItemMapper.java
}
	
	/**
	 * Clears the map.
	 */
	public void clearMap() {
		fPathToItem.clear();
	}
	
	/**
	 * Method that decides which elements can have error markers
	 * Returns null if an element can not have error markers.
	 */	
	private static IPath getCorrespondingPath(Object element) {
		if (element instanceof IJavaElement) {
			return getJavaElementPath((IJavaElement)element);
		}
		return null;
	}
	
	/**
	 * Gets the path of the underlying resource without throwing
	 * a JavaModelException if the resource does not exist.
	 */
	private static IPath getJavaElementPath(IJavaElement elem) {
		switch (elem.getElementType()) {
			case IJavaElement.JAVA_MODEL:
				return null;
			case IJavaElement.JAVA_PROJECT:
				return ((IJavaProject)elem).getProject().getFullPath();