View | Details | Raw Unified | Return to bug 327143 | Differences between
and this patch

Collapse All | Expand All

(-)search/org/eclipse/jdt/internal/core/search/processing/JobManager.java (-2 / +3 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
2
 * Copyright (c) 2000, 2011 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 226-232 Link Here
226
								float lastWorked = 0;
226
								float lastWorked = 0;
227
								float totalWorked = 0;
227
								float totalWorked = 0;
228
								while ((awaitingJobsCount = awaitingJobsCount()) > 0) {
228
								while ((awaitingJobsCount = awaitingJobsCount()) > 0) {
229
									if (subProgress != null && subProgress.isCanceled() && this.processingThread == null)
229
									if ((subProgress != null && subProgress.isCanceled())
230
											|| this.processingThread == null)
230
										throw new OperationCanceledException();
231
										throw new OperationCanceledException();
231
									IJob currentJob = currentJob();
232
									IJob currentJob = currentJob();
232
									// currentJob can be null when jobs have been added to the queue but job manager is not enabled
233
									// currentJob can be null when jobs have been added to the queue but job manager is not enabled

Return to bug 327143