Bug 315281 update copyrights for 3.6
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/ExtendedMarkersView.java
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) {
					selectedElements.add(resElement);
				}
			}
			MarkerContentGenerator generator = view.getGenerator();
			generator.updateSelectedResource(selectedElements.toArray());
		}
		
	}
}