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
this.view = view;
		}
		public void selectionChanged(IWorkbenchPart part, ISelection selection) {
			
			
			if (part == ExtendedMarkersView.this
					|| !(getSite().getPage().isPartVisible(part)))
				return;
			
			List objectsToAdapt = new ArrayList();
			if (part instanceof IEditorPart) {
				IEditorPart editor = (IEditorPart) part;
				objectsToAdapt.add(editor.getEditorInput());
			} else {
				if (selection instanceof IStructuredSelection) {
					for (Iterator iterator = ((IStructuredSelection) selection)
							.iterator(); iterator.hasNext();) {
						Object object = iterator.next();
						objectsToAdapt.add(object);
					}
				}
			}
			
			
			List selectedElements = new ArrayList();
			for (Iterator iterator = objectsToAdapt.iterator(); iterator
					.hasNext();) {
				Object object = iterator.next();
				Object resElement = MarkerResourceUtil.adapt2ResourceElement(object);
				if (resElement != null) {