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
selectedElements.add(resElement);
				}
			}
			MarkerContentGenerator generator = view.getGenerator();
			generator.updateSelectedResource(selectedElements.toArray());
		}
		
	}
	/**
	 * Return the undo context associated with operations performed in this view. By default, return
	 * the workspace undo context. Subclasses should override if a more specific undo context should
	 * be used.
	 *
	 * @since 3.7
	 */
	protected IUndoContext getUndoContext() {
		return (IUndoContext)ResourcesPlugin.getWorkspace().getAdapter(IUndoContext.class);
	}
	/**
	 * Returns the name of the delete operation.
	 * 
	 * @param markers the markers to be deleted, must have at least one element
	 * @since 3.7
	 */
	protected String getDeleteOperationName(IMarker[] markers) {
		Assert.isLegal(markers.length > 0);
		return markers.length == 1 ? MarkerMessages.deleteMarker_operationName : MarkerMessages.deleteMarkers_operationName;
	}
}