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
import org.eclipse.ui.views.markers.internal.MarkerType;
import org.eclipse.ui.views.markers.internal.Util;
/**
 * The CachedMarkerBuilder is the object that generates the list of markers from
 * a generator.
 * 
 * @since 3.4
 * 
 */
public class CachedMarkerBuilder {
	private static final MarkerCategory[] EMPTY_CATEGORY_ARRAY = new MarkerCategory[0];
	private static final MarkerEntry[] EMPTY_ENTRY_ARRAY = new MarkerEntry[0];
	private static final int SHORT_DELAY = 100;
	
	private static final int TIME_OUT = 30000;
	private static final String TAG_FILTERS_SECTION = "filterGroups"; 
	private static final String TAG_GROUP_ENTRY = "filterGroup"; 
	private static final String TAG_AND = "andFilters"; 
	private static final String TAG_CATEGORY_GROUP = "categoryGroup"; 
	private static final String VALUE_NONE = "none"; 
	private boolean building = true;
	
	private MarkerCategory[] categories;
	private MarkerMap currentMap = null;
	private MarkerContentGenerator generator; 
	
	
	private Job markerProcessJob;
	private IWorkbenchSiteProgressService progressService;
	private Job updateJob;