Bug 32038 Use shared images for properties, tasks, bookmarks views
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/tasklist/TaskList.java
taskListResourceAdapter =
							(ITaskListResourceAdapter) adapter;
					} else {
						taskListResourceAdapter =
							DefaultTaskListResourceAdapter.getDefault();
					}
					IResource resource =
						taskListResourceAdapter.getAffectedResource(
							(IAdaptable) object);
					if (resource != null) {
						list.add(resource);
					}
				}
			}
		}
		if (list.size() == 0 && focusPart instanceof IEditorPart) {
			IEditorInput input = ((IEditorPart) focusPart).getEditorInput();
			if (input != null) {
				if (input instanceof IFileEditorInput) {
					IFile file = ((IFileEditorInput) input).getFile();
					if (file != null) {
						list.add(file);
					}
				} else {
					IResource resource =
						(IResource) input.getAdapter(IResource.class);
					if (resource == null) {
						resource = (IFile) input.getAdapter(IFile.class);
					}
					if (resource != null) {