Bug 294303 [Markers] 'Queuing Viewer Updates' in Problems view
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerUpdateJob.java
* @since 3.6
 * 
 */
class SortingJob extends MarkerUpdateJob {
	public SortingJob(CachedMarkerBuilder builder) {
		super(builder);
		this.builder = builder;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.ui.internal.views.markers.MarkerUpdateJob#run(org.eclipse
	 * .core.runtime.IProgressMonitor)
	 */
	protected IStatus run(IProgressMonitor monitor) {
		monitor.beginTask(MarkerMessages.MarkerView_19,
				IProgressMonitor.UNKNOWN);
		MarkersChangeListener markersListener = builder.getMarkerListener();
		markersListener.cancelQueuedUIUpdates();
		markersListener.indicateStatus(
				MarkerMessages.MarkerView_19, false);
		builder.getMarkers().sortMarkerEntries(monitor);
		markersListener.scheduleUIUpdate(0L);
		if (monitor.isCanceled()) {
			return Status.CANCEL_STATUS;
		}
		return Status.OK_STATUS;
	}
}