Bug 214649 [Markers] Allow markerAttributeGroupings and markerGroups to be specified within contentGenerators
With everything at the top level it is hard to see the relation to a contentGenerator and the groups and attribute groupings. These should be sub elements a la menus.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/CachedMarkerBuilder.java
*/
	void updateFocusElements(Object[] elements) {
		Collection resourceCollection = new ArrayList();
		for (int i = 0; i < elements.length; i++) {
			if (elements[i] instanceof IResource) {
				resourceCollection.add(elements[i]);
			} else {
				addResources(resourceCollection,
						((ResourceMapping) elements[i]));
			}
		}
		focusResources = new IResource[resourceCollection.size()];
		resourceCollection.toArray(focusResources);
	}
	/**
	 * Update the receiver for a change in selection.
	 * 
	 * @param newElements
	 */
	void updateForNewSelection(Object[] newElements) {
		if (updateNeeded(newElements)) {
			updateFocusElements(newElements);
			scheduleMarkerUpdate();
		}
	}
	/**
	 * Update the receiver from the dialog.
	 * 
	 * @param dialog
	 */