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
return null;
		}
		Collection categories = new ArrayList();
		Object previous = null;
		int categoryStart = start;
		Object[] elements = markers.toArray();
		for (int i = start; i <= end; i++) {
			if (previous != null) {
				
				if (sorter.compareCategory(previous, elements[i]) != 0) {
					categories
							.add(new MarkerCategory(
									this,
									categoryStart,
									i - 1,
									getCategoryGroup()
											.getMarkerField()
											.getValue(
													markers
															.elementAt(categoryStart))));
					categoryStart = i;
				}
			}
			previous = elements[i];
		}
		if (end >= categoryStart) {
			categories.add(new MarkerCategory(this, categoryStart, end,
					getCategoryGroup().getMarkerField().getValue(
							markers.elementAt(categoryStart))));
		}