Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Muskalla2012-04-29 12:18:23 -0400
committerGerrit Code Review @ Eclipse.org2013-12-17 17:02:56 -0500
commit461cb61c85d4f7872c0faf5b9174d999bfcc98f5 (patch)
treec36be495374ed35a321c65beb44e6adc45f06f70 /org.eclipse.mylyn.bugzilla.core/src
parent20324679c2367c793f27095c4ac89ebe7b725bf4 (diff)
downloadorg.eclipse.mylyn.tasks-461cb61c85d4f7872c0faf5b9174d999bfcc98f5.tar.gz
org.eclipse.mylyn.tasks-461cb61c85d4f7872c0faf5b9174d999bfcc98f5.tar.xz
org.eclipse.mylyn.tasks-461cb61c85d4f7872c0faf5b9174d999bfcc98f5.zip
NEW - bug 378032: provide support for required attributes
https://bugs.eclipse.org/bugs/show_bug.cgi?id=378032 Change-Id: Ib3cfcb8c8cb489fab5afbb0565f6da0643ab4b97 Signed-off-by: Benjamin Muskalla <benjamin.muskalla@tasktop.com>
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.core/src')
-rw-r--r--org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
index b50cca6da..ba1f3f4dd 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
+++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaTaskDataHandler.java
@@ -546,6 +546,7 @@ public class BugzillaTaskDataHandler extends AbstractTaskDataHandler {
createAttribute(taskData, BugzillaAttribute.SHORT_DESC);
TaskAttribute attributeVersion = createAttribute(taskData, BugzillaAttribute.VERSION);
+ attributeVersion.getMetaData().setRequired(true);
optionValues = repositoryConfiguration.getProductOptionValues(BugzillaAttribute.VERSION,
productAttribute.getValue());
Collections.sort(optionValues);
@@ -557,6 +558,7 @@ public class BugzillaTaskDataHandler extends AbstractTaskDataHandler {
}
TaskAttribute attributeComponent = createAttribute(taskData, BugzillaAttribute.COMPONENT);
+ attributeComponent.getMetaData().setRequired(true);
optionValues = repositoryConfiguration.getProductOptionValues(BugzillaAttribute.COMPONENT,
productAttribute.getValue());
Collections.sort(optionValues);
@@ -607,6 +609,7 @@ public class BugzillaTaskDataHandler extends AbstractTaskDataHandler {
}
TaskAttribute attributeOPSYS = createAttribute(taskData, BugzillaAttribute.OP_SYS);
+ attributeOPSYS.getMetaData().setRequired(true);
optionValues = repositoryConfiguration.getOptionValues(BugzillaAttribute.OP_SYS);
for (String option : optionValues) {
attributeOPSYS.putOption(option, option);
@@ -617,6 +620,7 @@ public class BugzillaTaskDataHandler extends AbstractTaskDataHandler {
}
TaskAttribute attributePriority = createAttribute(taskData, BugzillaAttribute.PRIORITY);
+ attributePriority.getMetaData().setRequired(true);
optionValues = repositoryConfiguration.getOptionValues(BugzillaAttribute.PRIORITY);
for (String option : optionValues) {
attributePriority.putOption(option, option);
@@ -627,6 +631,7 @@ public class BugzillaTaskDataHandler extends AbstractTaskDataHandler {
}
TaskAttribute attributeSeverity = createAttribute(taskData, BugzillaAttribute.BUG_SEVERITY);
+ attributeSeverity.getMetaData().setRequired(true);
optionValues = repositoryConfiguration.getOptionValues(BugzillaAttribute.BUG_SEVERITY);
for (String option : optionValues) {
attributeSeverity.putOption(option, option);

Back to the top