Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 364661 | Differences between
and this patch

Collapse All | Expand All

(-)a/org/eclipse/ui/progress/DeferredTreeContentManager.java (-3 / +9 lines)
Lines 226-233 public class DeferredTreeContentManager { Link Here
226
			 * 
226
			 * 
227
			 * @see org.eclipse.core.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor)
227
			 * @see org.eclipse.core.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor)
228
			 */
228
			 */
229
			public IStatus run(IProgressMonitor monitor) {
229
			public IStatus run(final IProgressMonitor monitor) {
230
				adapter.fetchDeferredChildren(parent, collector, monitor);
230
				display.asyncExec(new Runnable() {
231
232
					public void run() {
233
						adapter.fetchDeferredChildren(parent, collector, monitor);
234
					}
235
					
236
				});
231
				if (monitor.isCanceled()) {
237
				if (monitor.isCanceled()) {
232
					return Status.CANCEL_STATUS;
238
					return Status.CANCEL_STATUS;
233
				}
239
				}
Lines 385-391 public class DeferredTreeContentManager { Link Here
385
		}
391
		}
386
392
387
		// Clear the placeholder if it is still there
393
		// Clear the placeholder if it is still there
388
		WorkbenchJob clearJob = new WorkbenchJob(
394
		WorkbenchJob clearJob = new WorkbenchJob(display,
389
				ProgressMessages.get( display ).DeferredTreeContentManager_ClearJob) {
395
				ProgressMessages.get( display ).DeferredTreeContentManager_ClearJob) {
390
			/*
396
			/*
391
			 * (non-Javadoc)
397
			 * (non-Javadoc)

Return to bug 364661