Bug 294303 [Markers] 'Queuing Viewer Updates' in Problems view
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ExtendedMarkersView.java
}
		private Object adapt2ResourceElement(Object object) {
			IResource resource = null;
			if (object instanceof IAdaptable) {
				Object adapter = Util.getAdapter(object,
						ITaskListResourceAdapter.class);
				if (adapter != null) {
					resource = ((ITaskListResourceAdapter) adapter)
							.getAffectedResource((IAdaptable) object);
				}
			}
			if (resource == null) {
				resource = (IResource) Util.getAdapter(object, IResource.class);
			}
			if (resource == null) {
				resource = (IResource) Util.getAdapter(object, IFile.class);
			}
			if (resource == null) {
				Object mapping = Util.getAdapter(object, ResourceMapping.class);
				if (mapping != null) {
					return mapping;
				}
			} else {
				return resource;
			}
			return null;
		}
	}
}