Bug 212008 [Presentations] Problemss View loses icon when it gets focus in n I20071204-1547
Everything is in the title.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/provisional/views/markers/ExtendedMarkersView.java
.iterator(); iterator.hasNext();) {
								Object object = iterator.next();
								if (object instanceof IAdaptable) {
									ITaskListResourceAdapter taskListResourceAdapter;
									Object adapter = ((IAdaptable) object)
											.getAdapter(ITaskListResourceAdapter.class);
									if (adapter != null
											&& adapter instanceof ITaskListResourceAdapter) {
										taskListResourceAdapter = (ITaskListResourceAdapter) adapter;
									} else {
										taskListResourceAdapter = getDefaultTaskListAdapter();
									}
									IResource resource = taskListResourceAdapter
											.getAffectedResource((IAdaptable) object);
									if (resource == null) {
										Object mapping = ((IAdaptable) object)
												.getAdapter(ResourceMapping.class);
										if (mapping != null) {
											selectedElements.add(mapping);
										}
									} else {
										selectedElements.add(resource);
									}
								}
							}
						}
					}
					builder.updateForNewSelection(selectedElements.toArray());
				}
			};