Bug 296695 [Markers] Problems view does not update on selection change
I20091201-1600 Problems view does not update any more on selection change. I have a 'Warnings on Selection' filter, but I always see the same warnings, even after I opened an editor or selected something in the Package Explorer.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerContentGenerator.java
if (newElements == null || newElements.length < 1)
				continue;
			if (selectedResources.length == 0)
				return true; 
			if (Arrays.equals(selectedResources, newElements))
				continue;
			if (scope == MarkerFieldFilterGroup.ON_ANY_IN_SAME_CONTAINER) {
				Collection oldProjects = MarkerResourceUtil
						.getProjectsAsCollection(selectedResources);
				Collection newProjects = MarkerResourceUtil
						.getProjectsAsCollection(newElements);
				if (oldProjects.size() == newProjects.size()
						&& newProjects.containsAll(oldProjects))
					continue;
				return true;
			}
			return true;
		}
		return false;
	}
	/**
	 * @return list of selected resources
	 */
	IResource[] getSelectedResources() {
		IResource[] selected=selectedResources;
		IResource[] resources = new IResource[selected.length];
		System.arraycopy(selected, 0, resources, 0,
				selected.length);
		return resources;
	}