Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Becker2012-05-04 15:42:55 +0000
committerFrank Becker2012-05-04 15:42:55 +0000
commit60794da2e6020530526debe41ebfbd184fb85580 (patch)
tree6b9302490a78fd417f8fbeb5843517c3e214348e /org.eclipse.mylyn.tasks.bugs
parent929528a1390187ef808a88eaca855adfcdf3d379 (diff)
downloadorg.eclipse.mylyn.tasks-60794da2e6020530526debe41ebfbd184fb85580.tar.gz
org.eclipse.mylyn.tasks-60794da2e6020530526debe41ebfbd184fb85580.tar.xz
org.eclipse.mylyn.tasks-60794da2e6020530526debe41ebfbd184fb85580.zip
Revert "ASSIGNED - bug 378230: "Submit failed: invalide severity [...] 'enhancement' https://bugs.eclipse.org/bugs/show_bug.cgi?id=378230"
Diffstat (limited to 'org.eclipse.mylyn.tasks.bugs')
-rw-r--r--org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/DefaultSupportHandler.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/DefaultSupportHandler.java b/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/DefaultSupportHandler.java
index e43446286..b9f462d0d 100644
--- a/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/DefaultSupportHandler.java
+++ b/org.eclipse.mylyn.tasks.bugs/src/org/eclipse/mylyn/internal/tasks/bugs/DefaultSupportHandler.java
@@ -62,7 +62,18 @@ public class DefaultSupportHandler extends AbstractSupportHandler {
@Override
public void postProcess(ISupportResponse response, IProgressMonitor monitor) {
+ IStatus contribution = response.getStatus();
TaskData taskData = response.getTaskData();
+ if (contribution instanceof ProductStatus) {
+ AbstractRepositoryConnector connector = TasksUi.getRepositoryConnector(taskData.getConnectorKind());
+ ITaskMapping mapping = connector.getTaskMapping(taskData);
+ mapping.merge(new TaskMapping() {
+ @Override
+ public String getSeverity() {
+ return "enhancement"; //$NON-NLS-1$
+ }
+ });
+ }
if (response.getProduct() != null) {
IBundleGroup bundleGroup = ((SupportProduct) response.getProduct()).getBundleGroup();
if (bundleGroup != null) {

Back to the top