Bug 264818 [Markers] Problems view: Status line shows wrong selection count summary
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerMap.java
if (markerCounts == null) {
			int[] ints = new int[] { 0, 0, 0 };
			for (int idx = 0; idx < markers.length; idx++) {
				MarkerEntry marker = markers[idx];
				int severity = marker.getAttributeValue(IMarker.SEVERITY, -1);
				if (severity >= IMarker.SEVERITY_INFO) {
					ints[marker.getAttributeValue(IMarker.SEVERITY, -1)]++;
				}
			}
			markerCounts = new Integer[] { new Integer(ints[2]),
					new Integer(ints[1]), new Integer(ints[0]) };
		}
		return markerCounts;
	}
	/**
	 * Return the {@link MarkerItem} that maps to marker.
	 * 
	 * @param marker
	 * @return {@link MarkerItem}
	 */
	public MarkerItem getMarkerItem(IMarker marker) {
		if (markerToEntryMap == null) {
			markerToEntryMap = new HashMap();
			for (int i = 0; i < markers.length; i++) {
				IMarker nextMarker = markers[i].getMarker();
				if (nextMarker != null)
					markerToEntryMap.put(nextMarker, markers[i]);
			}
		}
		if (markerToEntryMap.containsKey(marker))