Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-06-25 05:43:37 +0000
committermkersten2007-06-25 05:43:37 +0000
commitdbc1c2970b8b315811ecb93aef31e1b18f7f0ebe (patch)
treed9c5f99f13ebfca8c247a22b28232222bb500fe5
parent622ba8c05e01f630fa921fc7857cc26eb17843b2 (diff)
downloadorg.eclipse.mylyn.tasks-dbc1c2970b8b315811ecb93aef31e1b18f7f0ebe.tar.gz
org.eclipse.mylyn.tasks-dbc1c2970b8b315811ecb93aef31e1b18f7f0ebe.tar.xz
org.eclipse.mylyn.tasks-dbc1c2970b8b315811ecb93aef31e1b18f7f0ebe.zip
RESOLVED - bug 194106: Bugzilla TaskDataHandler does not validate id
https://bugs.eclipse.org/bugs/show_bug.cgi?id=194106
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/AddExistingTaskJob.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJob.java6
2 files changed, 2 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/AddExistingTaskJob.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/AddExistingTaskJob.java
index d3a164b2e..a30ad1617 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/AddExistingTaskJob.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/AddExistingTaskJob.java
@@ -100,7 +100,7 @@ public class AddExistingTaskJob extends Job {
});
}
} catch (final CoreException e) {
- StatusHandler.fail(e.getStatus().getException(), e.getMessage(), true);
+ StatusHandler.displayStatus("Unable to open task", e.getStatus());
} finally {
monitor.done();
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJob.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJob.java
index b5327ec8c..585af9bba 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJob.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/OpenRepositoryTaskJob.java
@@ -95,11 +95,7 @@ public class OpenRepositoryTaskJob extends Job {
});
}
} catch (final CoreException e) {
- PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
- public void run() {
- StatusHandler.displayStatus("Unable to open task.", e.getStatus());
- }
- });
+ StatusHandler.displayStatus("Unable to open task", e.getStatus());
} finally {
monitor.done();
}

Back to the top