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 235479 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/tasks/core/TaskList.java (-1 / +5 lines)
Lines 40-45 Link Here
40
 */
40
 */
41
public class TaskList implements ITaskList {
41
public class TaskList implements ITaskList {
42
42
43
	private static final String TASK_LIST_OPERATION_CANCELLED = "Task List operation cancelled";
44
43
	private static String DEFAULT_HANDLE_PREFIX = "handle-";
45
	private static String DEFAULT_HANDLE_PREFIX = "handle-";
44
46
45
	private static ILock lock = Job.getJobManager().newLock();
47
	private static ILock lock = Job.getJobManager().newLock();
Lines 616-622 Link Here
616
			lock(monitor);
618
			lock(monitor);
617
619
618
			runnable.execute(monitor);
620
			runnable.execute(monitor);
619
621
		} catch (OperationCanceledException e) {
622
			throw new CoreException(new Status(IStatus.CANCEL, ITasksCoreConstants.ID_PLUGIN,
623
					TASK_LIST_OPERATION_CANCELLED));
620
		} finally {
624
		} finally {
621
			unlock();
625
			unlock();
622
		}
626
		}

Return to bug 235479