Bug 29163 SafeRunnable needs to be accessible in JFace
We need to be able to access the SafeRunnable in JFace in order that some error protection can be added to preferences and properties dialogs.
bundles/org.eclipse.ui.workbench/extensions/org/eclipse/jface/operation/AccumulatingProgressMonitor.java
*/
public AccumulatingProgressMonitor(IProgressMonitor monitor, Display display) {
	super(monitor);
	Assert.isNotNull(display);
	this.display = display;
}
/* (non-Javadoc)
 * Method declared on IProgressMonitor.
 */
public void beginTask(final String name, final int totalWork) {
	synchronized(this) {
		collector = null;
	}	
	display.syncExec(new Runnable() {
		public void run() {
			getWrappedProgressMonitor().beginTask(name, totalWork);
		}
	});
}
/**
 * Clears the collector object used to accumulate work and subtask calls
 * if it matches the given one.
 */
private synchronized void clearCollector(Collector collector) {
	
	
	if (this.collector == collector)
		this.collector = null;
}
/**