summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2013-06-14 09:17:09 (EDT)
committer Gerrit Code Review @ Eclipse.org2013-08-09 14:18:47 (EDT)
commit379a46f86cb16aa02af82af4f34bd412ead3d66f (patch)
tree5584604f4c028f1c3a954ae6a5b0aefe2c41ae51
parentb55ba73481f324bd04e780bc05a8adae312d84af (diff)
downloadorg.eclipse.mylyn.tasks-379a46f86cb16aa02af82af4f34bd412ead3d66f.zip
org.eclipse.mylyn.tasks-379a46f86cb16aa02af82af4f34bd412ead3d66f.tar.gz
org.eclipse.mylyn.tasks-379a46f86cb16aa02af82af4f34bd412ead3d66f.tar.bz2
402465: Job found still running after platform shutdownrefs/changes/18/13818/4
Bug: 402465 Change-Id: I5fca206bad5b0ccd96a64262aed0fc6e98d470a6 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=402465 Signed-off-by: Tomasz Zarna <tomasz.zarna@tasktop.com>
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
index 197954e..1993562 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2010 Tasktop Technologies and others.
+ * Copyright (c) 2004, 2013 Tasktop Technologies and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -44,6 +44,7 @@ import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.SafeRunner;
import org.eclipse.core.runtime.Status;
+import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.dialogs.Dialog;
@@ -793,6 +794,7 @@ public class TasksUiPlugin extends AbstractUIPlugin {
@Override
public void stop(BundleContext context) throws Exception {
try {
+ Job.getJobManager().cancel(ITasksCoreConstants.JOB_FAMILY_SYNCHRONIZATION);
if (formColors != null) {
formColors.dispose();
formColors = null;