Bug 275910 [Widgets] PaintListener on Tree not invoked when item count is 0
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ExtendedMarkersView.java
/**
	 * Return the sort direction.
	 * 
	 * @return boolean
	 */
	public boolean getSortAscending() {
		return viewer.getTree().getSortDirection() == SWT.TOP;
	}
	/**
	 * Get the status message for the title and status line.
	 * 
	 * @param markers the markers for which to get the status message
	 * @param counts an array of {@link Integer} where index indicates
	 *            [errors,warnings,infos,others]
	 * @return String
	 */
	private String getStatusMessage(Markers markers, Integer[] counts) {
		String status = MarkerSupportInternalUtilities.EMPTY_STRING;
		int totalCount = builder.getTotalMarkerCount(markers);
		int filteredCount = 0;
		boolean markerLimitsEnabled = generator.isMarkerLimitsEnabled();
		int markerLimit = generator.getMarkerLimits();
		MarkerSupportItem[] categories = markers.getCategories();
		
		if (categories != null && builder.isShowingHierarchy()) {
			for (int i = 0; i < categories.length; i++) {
				
				int childCount = categories[i].getChildrenCount();
				if (markerLimitsEnabled)
					childCount = Math.min(childCount, markerLimit);