Bug 212408 [Markers] Markers updating during inconsistent state
We are updating during builds. As a result we get a lot of half constructed markers. We should 1) Cache default state 2) delay updates while a build is going on
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/provisional/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
	 */